- 05 9月, 2011 2 次提交
-
-
由 Damien Mathieu 提交于
-
由 Arun Agrawal 提交于
Fixes #2832
-
- 04 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 0df27c98. Reverted due to failing test, see #2845.
-
- 01 9月, 2011 1 次提交
-
-
由 Joshua Wehner 提交于
Replace split on comma with a regexp that will reverse all ASC/DESC specifically
-
- 29 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
The join_nodes must be passed to the JoinDependency initializer and therefore counted by the alias tracker. This is because the association_joins are aliased on initialization and then the tables are cached, so it is no use to alias the join_nodes later. Fixes #2556.
-
- 21 8月, 2011 2 次提交
-
-
由 Ernie Miller 提交于
-
由 Ernie Miller 提交于
-
- 14 8月, 2011 5 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 9d396ee8, reversing changes made to fa2bfd83. Reason: the change broke the build.
-
由 Samer Masry 提交于
-
由 Dmitriy Kiriyenko 提交于
-
由 Piotr Sarnacki 提交于
This reverts commit 04cc446d. I reverted it because apparently we want to use: select([:a, :b]) instead of select(:a, :b), but there was no tests for that form.
-
由 Sławosz Sławiński 提交于
-
- 09 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Make it the responsibility of the connection to hold onto an ARel visitor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
-
- 28 7月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 9d396ee8, reversing changes made to fa2bfd83. Reason: the change broke the build.
-
由 Samer Masry 提交于
-
- 27 7月, 2011 1 次提交
-
-
由 Dmitriy Kiriyenko 提交于
-
- 26 7月, 2011 2 次提交
-
-
由 Piotr Sarnacki 提交于
This reverts commit 04cc446d. I reverted it because apparently we want to use: select([:a, :b]) instead of select(:a, :b), but there was no tests for that form.
-
由 Sławosz Sławiński 提交于
-
- 24 7月, 2011 1 次提交
-
-
由 Franck Verrot 提交于
-
- 20 7月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 19 7月, 2011 1 次提交
-
-
由 Elliot Winkler 提交于
-
- 09 7月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
having raises NoMethodError: undefined method `empty?' when a Fixnum or Date/Time were passed via varargs
-
- 07 7月, 2011 2 次提交
-
-
由 knapo 提交于
This caused that `find_each` was producing extra db call taking all the records from db, and was less efficient than `ActiveRecord::Base#all`.
-
由 Ernie Miller 提交于
-
- 05 7月, 2011 1 次提交
-
-
由 Bogdan Gusiev 提交于
In order make Relation behavior closer to Array Made Relation#sum to accept block and delegate it to Array#sum
-
- 29 6月, 2011 2 次提交
-
-
由 Oriol Gual 提交于
-
由 Oriol Gual 提交于
-
- 28 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
default create_with_value to a hash so we can eliminate conditionals, add test surrounding create_with(nil) behavior
-
- 24 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 23 6月, 2011 1 次提交
-
-
由 Jon Guymon 提交于
-
- 22 6月, 2011 1 次提交
-
-
由 Caius Durling 提交于
Currently if the code that calls .find_in_batches modifies the yielded array in place then .find_in_batches can enter an infinite loop searching with ruby object ids in the database instead of the primary key of records in the database. This happens because it naively assumes the yielded array hasn't been modified before calling #id on the last object in the array. And ruby (1.8 at least) alias' #id to #object_id so an integer is still returned no matter what the last object is. By moving finding the #id of the last object before yielding the array it means the calling code can do whatever it wants to the array in terms of modifying it in place, and .find_in_batches doesn't care.
-
- 21 6月, 2011 1 次提交
-
-
由 Ernie Miller 提交于
-
- 02 6月, 2011 1 次提交
-
-
由 Brian Mathiyakom 提交于
Set reverse_order_value when asked to reverse_order(). Do the actual reversal in build_arel.
-
- 01 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Ensure that calculations properly override the select value even if it's set in the default scope. Fixes #1395.
-
- 25 5月, 2011 1 次提交
-
-
由 Jeremy Friesen 提交于
Addresses an inconsistency in the ActiveRecord::Base.method_missing handling of dynamic finder methods and the passing of the &block parameter for :find_by_attributes.
-
- 24 5月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
-
- 21 5月, 2011 1 次提交
-
-
由 Andrew White 提交于
-
- 20 5月, 2011 1 次提交
-
-
由 Guillermo Iguaran 提交于
-
- 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
-
- 09 5月, 2011 1 次提交
-
-
由 Nick Howard 提交于
if a query contains a limit or an offset, ActiveRecord::FinderMethods#find_last had inconsistent behavior. If the records were loaded, it returned the last record in the cached list. If they were not, it reversed the order of the query and changed the limit to one. If the earlier limit was less than the total matching the query in the db, it would return a different record than if the records had been cached. This commit changes find_last so that it loads the records when getting the last record on a query containing a limit or an offset, which makes the behavior consistent.
-