diff options
author | Yehuda Katz <yehudakatz@YK.local> | 2010-02-14 11:35:05 -0800 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-14 11:35:05 -0800 |
commit | 8e4363de72c0829c68d38f636b7fcefce6a5759a (patch) | |
tree | 8abd5dcf7b5bcc6307d01ab504ad10a1f84d91a8 /activesupport | |
parent | a1b60696e2b13cbe94d748444cc0da37b190fbb8 (diff) | |
download | rails-8e4363de72c0829c68d38f636b7fcefce6a5759a.tar.gz rails-8e4363de72c0829c68d38f636b7fcefce6a5759a.tar.bz2 rails-8e4363de72c0829c68d38f636b7fcefce6a5759a.zip |
Save off Module's const_missing, not Class'
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/dependencies.rb | 2 |
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 |