1. 18 1月, 2013 1 次提交
  2. 04 1月, 2013 1 次提交
  3. 15 12月, 2012 1 次提交
  4. 12 11月, 2012 1 次提交
  5. 10 10月, 2012 1 次提交
  6. 05 10月, 2012 2 次提交
  7. 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
  8. 17 9月, 2012 2 次提交
  9. 27 7月, 2012 1 次提交
    • J
      ActiveRecord::Base.all returns a Relation. · 6a81ccd6
      Jon Leighton 提交于
      Previously it returned an Array.
      
      If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This
      is more explicit.
      
      In most cases this should not break existing code, since
      Relations use method_missing to delegate unknown methods to #to_a
      anyway.
      6a81ccd6
  10. 25 7月, 2012 1 次提交
  11. 21 7月, 2012 1 次提交
    • J
      rm unnecessary test · 2f6e33d3
      Jon Leighton 提交于
      interpolation is no longer a thing separate from "normal" assoc
      conditions.
      2f6e33d3
  12. 27 4月, 2012 2 次提交
  13. 08 3月, 2012 2 次提交
  14. 06 3月, 2012 1 次提交
  15. 26 1月, 2012 1 次提交
  16. 17 1月, 2012 2 次提交
  17. 29 12月, 2011 1 次提交
  18. 18 12月, 2011 1 次提交
  19. 03 11月, 2011 3 次提交
  20. 29 8月, 2011 1 次提交
  21. 15 8月, 2011 1 次提交
  22. 07 7月, 2011 1 次提交
  23. 07 6月, 2011 1 次提交
  24. 05 6月, 2011 1 次提交
    • J
      Refactor Active Record test connection setup. Please see the... · 253bb6b9
      Jon Leighton 提交于
      Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
      253bb6b9
  25. 25 5月, 2011 4 次提交
  26. 01 5月, 2011 1 次提交
  27. 18 4月, 2011 1 次提交
  28. 28 3月, 2011 2 次提交
  29. 26 3月, 2011 1 次提交