method
inherited
v6.1.3.1 -
Show latest stable
- Class:
ActiveRecord::Core::ClassMethods
inherited(child_class)public
No documentation available.
# File activerecord/lib/active_record/core.rb, line 309
def inherited(child_class) # :nodoc:
# initialize cache at class definition for thread safety
child_class.initialize_find_by_cache
unless child_class.base_class?
klass = self
until klass.base_class?
klass.initialize_find_by_cache
klass = klass.superclass
end
end
super
end