aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/dependencies.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 56de29b730..ee7566f335 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -116,7 +116,7 @@ module ActiveSupport #:nodoc:
base.class_eval do
# Emulate #exclude via an ivar
return if @_const_missing
- @_const_missing = method(:const_missing)
+ @_const_missing = instance_method(:const_missing)
remove_method(:const_missing)
end
super