summaryrefslogtreecommitdiffstats
path: root/config/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/10-patches.rb5
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