Skip to content
Browse files

Save off Module's const_missing, not Class'

  • Loading branch information...
1 parent a1b6069 commit 8e4363de72c0829c68d38f636b7fcefce6a5759a Yehuda Katz committed Feb 14, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/dependencies.rb
View
2 activesupport/lib/active_support/dependencies.rb
@@ -116,7 +116,7 @@ def self.append_features(base)
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

0 comments on commit 8e4363d

Please sign in to comment.
Something went wrong with that request. Please try again.