Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

warning: instance variable @_const_missing not initialized fixed

  • Loading branch information...
commit 7ad2c5c06fe841d71b7fa0db8166f378b04693f8 1 parent 2f821a0
@spastorino spastorino authored Yehuda Katz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activesupport/lib/active_support/dependencies.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.