From 8e4363de72c0829c68d38f636b7fcefce6a5759a Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Sun, 14 Feb 2010 11:35:05 -0800 Subject: Save off Module's const_missing, not Class' --- activesupport/lib/active_support/dependencies.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') 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 -- cgit v1.2.3