diff --git a/app/models/issue.rb b/app/models/issue.rb index 1513f76..3a3373f 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -15,10 +15,6 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -# Additional includes for threadsafe mode activated in Rails 4 -require 'redmine/safe_attributes' -require 'redmine/utils' - class Issue < ActiveRecord::Base include Redmine::SafeAttributes include Redmine::Utils::DateCalculation diff --git a/config/application.rb b/config/application.rb index 856cc07..58d949a 100644 --- a/config/application.rb +++ b/config/application.rb @@ -18,16 +18,6 @@ module RedmineApp # Custom directories with classes and modules you want to be autoloadable. config.autoload_paths += %W(#{config.root}/lib) - # Earger load code for threadsafe mode - config.eager_load_paths += ["#{config.root}/lib"] - config.eager_load_paths += ["#{config.root}/plugins"] - - # Enable threaded mode - config.threadsafe! - - # Allow rake tasks to autoload models in thread safe mode, more info at http://stackoverflow.com/a/4880253 - config.dependency_loading = true if $rails_rake_task - # Only load the plugins named here, in the order given (default is alphabetical). # :all can be used as a placeholder for all plugins not explicitly named. # config.plugins = [ :exception_notification, :ssl_requirement, :all ]