1. 31 10月, 2012 3 次提交
  2. 29 10月, 2012 4 次提交
  3. 28 10月, 2012 1 次提交
  4. 27 10月, 2012 1 次提交
  5. 26 10月, 2012 1 次提交
    • J
      Remove ActiveRecord::Model · 9e4c41c9
      Jon Leighton 提交于
      In the end I think the pain of implementing this seamlessly was not
      worth the gain provided.
      
      The intention was that it would allow plain ruby objects that might not
      live in your main application to be subclassed and have persistence
      mixed in. But I've decided that the benefit of doing that is not worth
      the amount of complexity that the implementation introduced.
      9e4c41c9
  6. 24 10月, 2012 1 次提交
  7. 21 10月, 2012 1 次提交
  8. 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
  9. 19 10月, 2012 3 次提交
  10. 17 10月, 2012 1 次提交
  11. 16 10月, 2012 3 次提交
  12. 14 10月, 2012 1 次提交
  13. 12 10月, 2012 1 次提交
  14. 08 10月, 2012 1 次提交
  15. 05 10月, 2012 1 次提交
  16. 04 10月, 2012 2 次提交
    • R
      Fix CHANGELOG entry [ci skip] · d7d22840
      Rafael Mendonça França 提交于
      d7d22840
    • F
      Count returns 0 without querying if parent is not saved · aa202adf
      Francesco Rodriguez 提交于
      Patches `CollectionAssociation#count` to return 0 without querying
      if the parent record is new. Consider the following code:
      
          class Account
            has_many :dossiers
          end
      
          class Dossier
            belongs_to :account
          end
      
          a = Account.new
          a.dossiers.build
      
          # before patch
          a.dossiers.count
          # SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL
          # => 0
      
          # after
          a.dosiers.count # fires without sql query
          # => 0
      
      Fixes #1856.
      aa202adf
  17. 02 10月, 2012 1 次提交
  18. 29 9月, 2012 3 次提交
  19. 24 9月, 2012 1 次提交
  20. 22 9月, 2012 1 次提交
  21. 21 9月, 2012 3 次提交
  22. 20 9月, 2012 1 次提交
  23. 19 9月, 2012 2 次提交
  24. 18 9月, 2012 1 次提交
  25. 17 9月, 2012 1 次提交