1. 22 5月, 2012 6 次提交
  2. 21 5月, 2012 2 次提交
  3. 20 5月, 2012 2 次提交
  4. 19 5月, 2012 9 次提交
  5. 12 5月, 2012 5 次提交
    • J
      Remove #=== quirk · 2091e5a6
      Jon Leighton 提交于
      Makes it consistent with Relation. Can't see a use for this.
      2091e5a6
    • J
      this stuff can all be handled by Relation · ecef5a9f
      Jon Leighton 提交于
      ecef5a9f
    • J
      extract deprecated code · be7c6ee5
      Jon Leighton 提交于
      be7c6ee5
    • J
      set_owner_attributes is covered by the scoping · 8f50bbee
      Jon Leighton 提交于
      8f50bbee
    • J
      CollectionProxy < Relation · c86a32d7
      Jon Leighton 提交于
      This helps bring the interfaces of CollectionProxy and Relation closer
      together, and reduces the delegation backflips we need to perform.
      
      For example, first_or_create is defined thus:
      
      class ActiveRecord::Relation
        def first_or_create(...)
          first || create(...)
        end
      end
      
      If CollectionProxy < Relation, then post.comments.first_or_create will
      hit the association's #create method which will actually add the new record
      to the association, just as post.comments.create would.
      
      With the previous delegation, post.comments.first_or_create expands to
      post.comments.scoped.first_or_create, where post.comments.scoped has no
      knowledge of the association.
      c86a32d7
  6. 04 5月, 2012 2 次提交
  7. 03 5月, 2012 1 次提交
  8. 27 4月, 2012 1 次提交
  9. 18 4月, 2012 1 次提交
  10. 20 1月, 2012 1 次提交
  11. 06 1月, 2012 1 次提交
  12. 09 12月, 2011 1 次提交
  13. 30 11月, 2011 1 次提交
  14. 26 9月, 2011 1 次提交
  15. 14 8月, 2011 1 次提交
  16. 27 7月, 2011 1 次提交
  17. 08 7月, 2011 1 次提交
  18. 01 7月, 2011 1 次提交
  19. 08 6月, 2011 1 次提交
  20. 01 6月, 2011 1 次提交