- 16 8月, 2016 1 次提交
-
-
由 Rafael Mendonça França 提交于
Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository.
-
- 07 8月, 2016 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
-
- 26 6月, 2014 1 次提交
-
-
由 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.
-
- 02 1月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 31 12月, 2013 1 次提交
-
-
https://github.com/rails/rails/commit/2075f39d726cef361170218fd16421fc52bed5a8由 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
-
- 28 8月, 2013 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 15 3月, 2013 1 次提交
-
-
由 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.
-
- 28 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
It doesn't serve much purpose now that ActiveRecord::Base.all returns a Relation. The code is moved to active_record_deprecated_finders.
-
- 27 7月, 2012 1 次提交
-
-
由 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.
-
- 27 4月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 17 1月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
See the CHANGELOG for details. Fixes #950.
-
由 Jon Leighton 提交于
This reverts commit c99d507f.
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 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.
-
- 31 5月, 2011 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 12 5月, 2011 1 次提交
-
-
- If doing a count on a relation that has an :include and a :join, it does a distinct even though it should not. - When doing a count on a relation that has an :include, it always falls back to a old style left join when performing the count. Looks like it was broken here: https://github.com/rails/rails/commit/b9599502c9e738a5a1513e75d08f8d40ed408265
-
- 18 11月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Fix bug with 0bb85ed9 which missed out a fixtures declaration in cascaded_eager_loading_test.rb
-
- 06 11月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Fixes queries using limits and punctuation in order, removes order("col1, col2") usage in favor of order(["col1", "col2"}) [#4597 state:committed]
-
- 31 10月, 2010 2 次提交
-
-
由 Jon Leighton 提交于
Update new tests in cascaded_eager_loading_test.rb to work with the modified fixtures in this branch
-
由 Jon Leighton 提交于
Fix bug with 0bb85ed9 which missed out a fixtures declaration in cascaded_eager_loading_test.rb
-
- 30 10月, 2010 1 次提交
-
-
由 Ernie Miller 提交于
-
- 19 10月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
-
- 13 10月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Add some tests for functionality in JoinAssociation which already exists but was previously untested
-
- 06 10月, 2010 1 次提交
-
-
由 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.
-
- 03 10月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Fix the tests (I have actually verified that these are also the 'right' fixes, rather than just making the tests pass again)
-
- 22 7月, 2010 1 次提交
-
-
由 Subba Rao Pasupuleti 提交于
[#5153 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 7月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 16 7月, 2010 1 次提交
-
-
由 David Genord II 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 26 6月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 09 6月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 08 6月, 2010 1 次提交
-
-
由 Ernie Miller 提交于
[#4679 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 29 4月, 2010 1 次提交
-
-
由 Ernie Miller 提交于
[#4463 state:committed] Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 06 10月, 2009 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 27 12月, 2008 1 次提交
-
-
由 Pivotal Labs 提交于
Signed-off-by: NFrederick Cheung <frederick.cheung@gmail.com>
-
- 17 8月, 2008 1 次提交
-
-
由 Tarmo Tänav 提交于
Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
-
- 04 8月, 2008 1 次提交
-
-
由 Tarmo Tänav 提交于
Signed-off-by: NMichael Koziarski <michael@koziarski.com>
-
- 24 3月, 2008 1 次提交
-
-
由 Rick Olson 提交于
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9084 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-