1. 21 10月, 2012 2 次提交
  2. 20 10月, 2012 1 次提交
  3. 11 10月, 2012 2 次提交
  4. 09 10月, 2012 3 次提交
  5. 08 10月, 2012 5 次提交
  6. 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
  7. 05 10月, 2012 5 次提交
  8. 04 10月, 2012 1 次提交
    • 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
  9. 03 10月, 2012 1 次提交
  10. 02 10月, 2012 1 次提交
  11. 01 10月, 2012 3 次提交
  12. 30 9月, 2012 1 次提交
  13. 29 9月, 2012 2 次提交
    • R
      Fix syntax error with no US-ASCII char · 9eb72ac7
      Rafael Mendonça França 提交于
      9eb72ac7
    • J
      Support for partial inserts. · 144e8691
      Jon Leighton 提交于
      When inserting new records, only the fields which have been changed
      from the defaults will actually be included in the INSERT statement.
      The other fields will be populated by the database.
      
      This is more efficient, and also means that it will be safe to
      remove database columns without getting subsequent errors in running
      app processes (so long as the code in those processes doesn't
      contain any references to the removed column).
      144e8691
  14. 27 9月, 2012 1 次提交
  15. 26 9月, 2012 1 次提交
  16. 24 9月, 2012 1 次提交
  17. 23 9月, 2012 2 次提交
  18. 22 9月, 2012 7 次提交