aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorYehuda Katz <yehudakatz@YK.local>2010-02-14 11:35:05 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-14 11:35:05 -0800
commit8e4363de72c0829c68d38f636b7fcefce6a5759a (patch)
tree8abd5dcf7b5bcc6307d01ab504ad10a1f84d91a8 /activesupport/lib/active_support
parenta1b60696e2b13cbe94d748444cc0da37b190fbb8 (diff)
downloadrails-8e4363de72c0829c68d38f636b7fcefce6a5759a.tar.gz
rails-8e4363de72c0829c68d38f636b7fcefce6a5759a.tar.bz2
rails-8e4363de72c0829c68d38f636b7fcefce6a5759a.zip
Save off Module's const_missing, not Class'
Diffstat (limited to 'activesupport/lib/active_support')
-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