diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-02-19 17:28:20 -0200 |
---|---|---|
committer | Yehuda Katz <yehudakatz@YK.local> | 2010-02-19 11:35:03 -0800 |
commit | 7ad2c5c06fe841d71b7fa0db8166f378b04693f8 (patch) | |
tree | d36a6e32908b44f6e7ad219912b4384022d783bd | |
parent | 2f821a0a987902cbe69ba04eb2fe04ea757682a3 (diff) | |
download | rails-7ad2c5c06fe841d71b7fa0db8166f378b04693f8.tar.gz rails-7ad2c5c06fe841d71b7fa0db8166f378b04693f8.tar.bz2 rails-7ad2c5c06fe841d71b7fa0db8166f378b04693f8.zip |
warning: instance variable @_const_missing not initialized fixed
-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 a3a7df7464..96478ee947 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -117,7 +117,7 @@ module ActiveSupport #:nodoc: def self.append_features(base) base.class_eval do # Emulate #exclude via an ivar - return if @_const_missing + return if defined?(@_const_missing) && @_const_missing @_const_missing = instance_method(:const_missing) remove_method(:const_missing) end |