1. 09 11月, 2017 1 次提交
  2. 20 7月, 2017 1 次提交
  3. 02 7月, 2017 1 次提交
  4. 01 7月, 2017 1 次提交
  5. 06 6月, 2017 1 次提交
  6. 27 4月, 2017 2 次提交
  7. 26 3月, 2017 1 次提交
  8. 04 1月, 2017 1 次提交
  9. 03 12月, 2016 1 次提交
  10. 29 10月, 2016 1 次提交
  11. 17 9月, 2016 1 次提交
  12. 16 8月, 2016 1 次提交
  13. 07 8月, 2016 2 次提交
  14. 26 6月, 2014 1 次提交
    • S
      Deprecate automatic counter caches on has_many :through · d730e374
      Sean Griffin 提交于
      Reliant on https://github.com/rails/rails/pull/15747 but pulled to a
      separate PR to reduce noise. `has_many :through` associations have the
      undocumented behavior of automatically detecting counter caches.
      However, the way in which it does so is inconsistent with counter caches
      everywhere else, and doesn't actually work consistently.
      
      As with normal `has_many` associations, the user should specify the
      counter cache on the `belongs_to`, if they'd like it updated.
      d730e374
  15. 02 1月, 2014 1 次提交
  16. 31 12月, 2013 1 次提交
    • V
      https://github.com/rails/rails/commit/2075f39d726cef361170218fd16421fc52bed5a8... · bb17c3b2
      Vipul A M 提交于
      https://github.com/rails/rails/commit/2075f39d726cef361170218fd16421fc52bed5a8 introduced a regression in includes/preloades
      by calling `read_attribute` on an association when preloading takes places, instead of using loaded records in `association.target`.
      
      tl;dr
      
      Records are not made properly available via `read_attribute` when preloding in simultaneous,
      but value of `@loaded` is already set true, and records concatenated in `association.target` on an association object.
      When `@loaded` is true we return an object of `AlreadyLoaded` in preload_for. In `AlreadyLoaded` to return preloaded
      records we make wrong use of `read_attribute`, instead of `target` records.
      
      The regression is fixed by making use of the loaded records in `association.target` when the preloading takes place.
      
      Fixes #13437
      bb17c3b2
  17. 28 8月, 2013 1 次提交
  18. 15 3月, 2013 1 次提交
    • Y
      Deprecate the `:distinct` option for `Relation#count`. · cd87c85e
      Yves Senn 提交于
      We moved more and more away from passing options to finder / calculation
      methods. The `:distinct` option in `#count` was one of the remaining places.
      Since we can now combine `Relation#distinct` with `Relation#count` the option
      is no longer necessary and can be deprecated.
      cd87c85e
  19. 28 7月, 2012 1 次提交
  20. 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
  21. 27 4月, 2012 2 次提交
  22. 17 1月, 2012 2 次提交
  23. 29 12月, 2011 1 次提交
  24. 07 6月, 2011 1 次提交
  25. 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
  26. 31 5月, 2011 1 次提交
  27. 12 5月, 2011 1 次提交
  28. 18 11月, 2010 1 次提交
  29. 06 11月, 2010 1 次提交
  30. 31 10月, 2010 2 次提交
  31. 30 10月, 2010 1 次提交
  32. 19 10月, 2010 1 次提交
  33. 13 10月, 2010 1 次提交
  34. 06 10月, 2010 1 次提交
    • J
      Refactoring JoinDependency and friends. This improves the code (IMO) including... · f2b41914
      Jon Leighton 提交于
      Refactoring JoinDependency and friends. This improves the code (IMO) including adding some explanatory comments, but more importantly structures it in such a way as to allow a JoinAssociation to produce an arbitrary number of actual joins, which will be necessary for nested has many through support. Also added 3 tests covering functionality which existed but was not previously covered.
      f2b41914
  35. 03 10月, 2010 1 次提交