diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
commit | 8fb1a7e3ccc7b501704a7873b328c1b976554cab (patch) | |
tree | fd69eb36ab8ecc9f31b32ec68ce77fe054b6a2dd /config/initializers/10-patches.rb | |
parent | 91c875437d5dcca7355c9ed405a4464734cc6d17 (diff) | |
download | redmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.tar.gz redmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.zip |
Fixed that open scope on Project#issues raises an error (#11545).
Patch by Petr Pospisil.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10199 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers/10-patches.rb')
-rw-r--r-- | config/initializers/10-patches.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb index 672f1c0a0..e4a110cfa 100644 --- a/config/initializers/10-patches.rb +++ b/config/initializers/10-patches.rb @@ -10,6 +10,11 @@ module ActiveRecord l("field_#{name.underscore.gsub('/', '_')}_#{attr}", :default => ["field_#{attr}".to_sym, attr]) end end + + # Undefines private Kernel#open method to allow using `open` scopes in models. + # See Defect #11545 (http://www.redmine.org/issues/11545) for details. + class Base ; undef open ; end + class Relation ; undef open ; end end module ActionView |