Index: init.rb =================================================================== --- init.rb (revision 20) +++ init.rb (working copy) @@ -1,14 +1,14 @@ require 'redmine' require 'dispatcher' -require_dependency 'principal' -require_dependency 'user' -require_dependency 'profile_hook' - RAILS_DEFAULT_LOGGER.info 'Starting Extended Profile plugin for Redmine' Dispatcher.to_prepare :extended_profile_plugin do + require_dependency 'principal' + require_dependency 'user' + + require_dependency 'profile_hook' unless User.included_modules.include?(ExtendedUserPatch) User.send(:include, ExtendedUserPatch) end