mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
6951014c05
When subclassing abstract_class table_name should be always computed based on class name, no matter if superclass is subclassing base or another abstract_class. So: class FirstAbstract < ActiveRecord::Base self.abstract_class = true end class SecondAbstract < FirstAbstract self.abstract_class = true end class Post < SecondAbstract self.table_name #=> 'posts' (not 'second_abstracts') end |
||
---|---|---|
.. | ||
active_record | ||
rails/generators | ||
active_record.rb |