1. 20 10月, 2012 1 次提交
    • J
      Get rid of the ActiveRecord::Model::DeprecationProxy thing. · 83846838
      Jon Leighton 提交于
      I think it's going to be too much pain to try to transition the
      :active_record load hook from executing against Base to executing
      against Model.
      
      For example, after Model is included in Base, and modules included in
      Model will no longer get added to the ancestors of Base.
      
      So plugins which wish to be compatible with both Model and Base should
      use the :active_record_model load hook which executes *before* Base gets
      loaded.
      
      In general, ActiveRecord::Model is an advanced feature at the moment and
      probably most people will continue to inherit from ActiveRecord::Base
      for the time being.
      83846838
  2. 21 8月, 2012 1 次提交
  3. 18 8月, 2012 1 次提交
  4. 03 8月, 2012 1 次提交
  5. 28 7月, 2012 1 次提交
  6. 16 6月, 2012 1 次提交
  7. 13 4月, 2012 1 次提交
  8. 07 3月, 2012 2 次提交
  9. 05 3月, 2012 1 次提交
  10. 04 3月, 2012 3 次提交
  11. 08 2月, 2012 2 次提交
  12. 26 1月, 2012 1 次提交
  13. 13 1月, 2012 1 次提交
    • P
      Fix table_name in ActiveRecord with more than one abstract ancestors · 6951014c
      Piotr Sarnacki 提交于
      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
      6951014c
  14. 29 12月, 2011 2 次提交
    • J
      Support establishing connection on ActiveRecord::Model. · dae7b654
      Jon Leighton 提交于
      This is the 'top level' connection, inherited by any models that include
      ActiveRecord::Model or inherit from ActiveRecord::Base.
      dae7b654
    • J
      Support configuration on ActiveRecord::Model. · 93c1f11c
      Jon Leighton 提交于
      The problem: We need to be able to specify configuration in a way that
      can be inherited to models that include ActiveRecord::Model. So it is
      no longer sufficient to put 'top level' config on ActiveRecord::Base,
      but we do want configuration specified on ActiveRecord::Base and
      descendants to continue to work.
      
      So we need something like class_attribute that can be defined on a
      module but that is inherited when ActiveRecord::Model is included.
      
      The solution: added ActiveModel::Configuration module which provides a
      config_attribute macro. It's a bit specific hence I am not putting this
      in Active Support or making it a 'public API' at present.
      93c1f11c
  15. 24 12月, 2011 4 次提交
  16. 22 12月, 2011 1 次提交
  17. 16 12月, 2011 3 次提交