Permalink
Browse files

warning: instance variable @_const_missing not initialized fixed

  • Loading branch information...
1 parent 2f821a0 commit 7ad2c5c06fe841d71b7fa0db8166f378b04693f8 @spastorino spastorino committed with Yehuda Katz Feb 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/dependencies.rb
@@ -117,7 +117,7 @@ module ModuleConstMissing #: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

0 comments on commit 7ad2c5c

Please sign in to comment.