diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-14 10:37:10 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-07-14 10:37:10 +0000 |
commit | 8d982736e03595739235b0da123a105c43fdaf75 (patch) | |
tree | 75f6d91a59bd7463a3fbe84f4729f14029caf6df /config/initializers | |
parent | dd11d70eb9624c6e9bea865be7bca76d05f1a808 (diff) | |
download | redmine-8d982736e03595739235b0da123a105c43fdaf75.tar.gz redmine-8d982736e03595739235b0da123a105c43fdaf75.zip |
Class mismatch when reloading in development mode (#17431).
git-svn-id: http://svn.redmine.org/redmine/trunk@13323 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r-- | config/initializers/30-redmine.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/initializers/30-redmine.rb b/config/initializers/30-redmine.rb index b0cc1f752..f0fc4d4c6 100644 --- a/config/initializers/30-redmine.rb +++ b/config/initializers/30-redmine.rb @@ -20,3 +20,9 @@ Redmine::Plugin.load unless Redmine::Configuration['mirror_plugins_assets_on_startup'] == false Redmine::Plugin.mirror_assets end + +Rails.application.config.to_prepare do + Redmine::FieldFormat::RecordList.subclasses.each do |klass| + klass.instance.reset_target_class + end +end
\ No newline at end of file |