summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-17 14:34:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-17 14:34:10 +0000
commitaf5a814f4cf11d3c288b00e0b7b9d89b7a5ef74d (patch)
tree71a96cf1d341a2753784ac5dba758afb0c416dd7 /config/initializers
parent91a09bd474b3e33b6fbc93022911505f11419258 (diff)
downloadredmine-af5a814f4cf11d3c288b00e0b7b9d89b7a5ef74d.tar.gz
redmine-af5a814f4cf11d3c288b00e0b7b9d89b7a5ef74d.zip
Prevents "Overwriting existing method Issue.open" warning (#11545).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10208 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/initializers/10-patches.rb b/config/initializers/10-patches.rb
index c2d0a5fad..52e26a25b 100644
--- a/config/initializers/10-patches.rb
+++ b/config/initializers/10-patches.rb
@@ -13,7 +13,11 @@ module ActiveRecord
# 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 Base
+ class << self
+ undef open
+ end
+ end
class Relation ; undef open ; end
end