Method: ActiveRecord::Base.base_class
- Defined in:
- lib/active_record/base.rb
.base_class ⇒ Object
Returns the base AR subclass that this class descends from. If A extends AR::Base, A.base_class will return A. If B descends from A through some arbitrarily deep hierarchy, B.base_class will return A.
1411 1412 1413 |
# File 'lib/active_record/base.rb', line 1411 def base_class class_of_active_record_descendant(self) end |