1. 21 10月, 2012 2 次提交
  2. 20 10月, 2012 1 次提交
  3. 11 10月, 2012 2 次提交
  4. 10 10月, 2012 1 次提交
  5. 09 10月, 2012 3 次提交
  6. 08 10月, 2012 6 次提交
  7. 07 10月, 2012 2 次提交
  8. 06 10月, 2012 1 次提交
    • E
      Fix has_many assocation w/select load after create · 9f3b8cd5
      Ernie Miller 提交于
      If you create a new record via a collection association proxy that has
      not loaded its target, and which selects additional attributes through
      the association, then when the proxy loads its target, it will
      inadvertently trigger an ActiveModel::MissingAttributeError during
      attribute writing when CollectionAssociation#merge_target_lists attempts
      to do its thing, since the newly loaded records will possess attributes
      the created record does not.
      
      This error also raises a bogus/confusing deprecation warning when
      accessing the association in Rails 3.2.x, so cherry-pick would be
      appreciated!
      9f3b8cd5
  9. 05 10月, 2012 5 次提交
  10. 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
  11. 03 10月, 2012 2 次提交
  12. 02 10月, 2012 1 次提交
  13. 01 10月, 2012 3 次提交
  14. 30 9月, 2012 1 次提交
  15. 29 9月, 2012 6 次提交
  16. 27 9月, 2012 1 次提交
  17. 26 9月, 2012 1 次提交