1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib
Piotr Sarnacki 6951014c05 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
2012-01-12 20:39:12 +01:00
..
active_record Fix table_name in ActiveRecord with more than one abstract ancestors 2012-01-12 20:39:12 +01:00
rails/generators Tidy up migration types. 2011-12-24 10:38:19 +01:00
active_record.rb Merge pull request #4248 from andrew/2012 2011-12-31 12:48:19 -08:00