aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/interest.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2012-01-12 20:32:11 +0100
committerPiotr Sarnacki <drogus@gmail.com>2012-01-12 20:39:12 +0100
commit6951014c05fa64f533072d21dc7e4c55f59162d4 (patch)
treec0bfb58e9273544f333f9d4818389f5c187c53a5 /activerecord/test/models/interest.rb
parent84d633a0b3e74ded1daae58a10508122c2a57879 (diff)
downloadrails-6951014c05fa64f533072d21dc7e4c55f59162d4.tar.gz
rails-6951014c05fa64f533072d21dc7e4c55f59162d4.tar.bz2
rails-6951014c05fa64f533072d21dc7e4c55f59162d4.zip
Fix table_name in ActiveRecord with more than one abstract ancestors
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
Diffstat (limited to 'activerecord/test/models/interest.rb')
0 files changed, 0 insertions, 0 deletions