aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Collapse)AuthorAgeFilesLines
...
* collapsing same table / column WHERE clauses to be OR [#4598 state:resolved]Aaron Patterson2010-11-171-4/+25
|
* use shorter form for sql literalsAaron Patterson2010-11-171-1/+1
|
* refactor to reduce method callsAaron Patterson2010-11-161-10/+19
|
* Fix ActiveRecord calculations when grouped by multiple fieldsAlexandru Catighera2010-11-161-14/+18
|
* support finding by a ruby class [#5979 state:resolved]Aaron Patterson2010-11-151-0/+3
|
* use quoted id of single AR::Base objects in predicatesAaron Patterson2010-11-151-0/+2
|
* Finder gives a little bit more info on the lookup column (primary key)Franck Verrot2010-11-131-1/+1
|
* stop recursively calling exists?Aaron Patterson2010-11-051-3/+5
|
* Fixes queries using limits and punctuation in order, removes order("col1, ↵Santiago Pastorino2010-11-051-1/+1
| | | | | | col2") usage in favor of order(["col1", "col2"}) [#4597 state:committed]
* only returning where values for the corresponding relation, also filtering ↵Aaron Patterson2010-10-301-4/+5
| | | | where value hash based on table name [#5234 state:resolved] [#5184 state:resolved]
* no need to merge where values if no new where values have been addedAaron Patterson2010-10-301-11/+13
|
* find_one uses prepared statement cacheAaron Patterson2010-10-261-1/+6
|
* adding bind_values to relationsAaron Patterson2010-10-261-1/+8
|
* reduce duplicate where removal to one loopAaron Patterson2010-10-201-15/+13
|
* swap out some n^2 for some nAaron Patterson2010-10-191-7/+13
|
* dup rather than create so many arraysAaron Patterson2010-10-191-2/+2
|
* use array math rather than looping through the arrayAaron Patterson2010-10-191-1/+1
|
* use shortened version to generate a sql literalAaron Patterson2010-10-191-1/+1
|
* avoid cloning if we do not need to cloneAaron Patterson2010-10-191-0/+2
|
* avoid creating a proc object when possibleAaron Patterson2010-10-191-2/+2
|
* Renaming and formatting changes in JoinDependencyJon Leighton2010-10-131-2/+5
|
* Refactor JoinDependency and friends so that a JoinAssociation can produce an ↵Jon Leighton2010-10-131-12/+1
| | | | arbitrary number of joins, which will be needed in order to support nested through associations.
* stop using deprecated arel APIAaron Patterson2010-10-121-2/+2
|
* we should always cast the value based on the columnAaron Patterson2010-10-111-1/+1
|
* Honor distinct option when used with count operation after group clause ↵Marcelo Giorgi2010-10-111-4/+8
| | | | [#5721 state:resolved]
* reorder removed in favor of except(:order).orderSantiago Pastorino2010-10-112-20/+2
|
* avoid creating objects when we canAaron Patterson2010-10-032-12/+6
|
* build_where should be privateAaron Patterson2010-09-301-2/+2
|
* [#5441 state:resolved] refactoring code to determine aggregate columnAaron Patterson2010-09-301-11/+14
|
* removing more useless code! yay!Aaron Patterson2010-09-281-6/+2
|
* SqlLiteral is a string, so we can dry up these conditionalsAaron Patterson2010-09-281-4/+3
|
* shorten up or sql literal creation statementsAaron Patterson2010-09-281-4/+2
|
* we only care about arrays and stringsAaron Patterson2010-09-281-1/+1
|
* dry up calls to arel.join()Aaron Patterson2010-09-281-5/+4
|
* removing unused lasgnsAaron Patterson2010-09-281-4/+4
|
* refactoring to remove crazy logicAaron Patterson2010-09-282-9/+6
|
* performance improvement based on discussion at ↵Neeraj Singh2010-09-281-9/+3
| | | | | | http://github.com/rails/rails/commit/fbd1d306b95cc2efb6422e12d26d5818a3a42343 Credit goes to all the participants in the discussion
* removing a conditional that is not usedAaron Patterson2010-09-281-2/+0
|
* fisting the postgresql testsAaron Patterson2010-09-281-1/+2
|
* avoid calling to_sql when we canAaron Patterson2010-09-282-4/+4
|
* removing an inject + merge in favor of Hash#[]Aaron Patterson2010-09-281-1/+1
|
* make sure we use the engine assigned to the table when quotingAaron Patterson2010-09-271-1/+1
|
* Three performance improvements:Neeraj Singh2010-09-271-10/+9
| | | | | | | | * for simple cases like User.last and User.order('name desc').last no need to perform Array#join operation. * Instead of performing String#blank? do Array#empty? * no need to create variable relation
* Goodbye inject, hello map.Emilio Tagua2010-09-221-7/+5
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* un-nodocs AR::BatchesXavier Noria2010-09-211-1/+1
|
* adds to the API guidelines the proper spelling of ArelXavier Noria2010-09-191-2/+2
|
* @join_values is passed in, so we should use the parameterAaron Patterson2010-09-151-1/+1
|
* passing the quoted id to arel if the object has a quoted idAaron Patterson2010-09-101-1/+3
|
* converting an inject to a map + Hash[]Aaron Patterson2010-09-101-1/+1
|
* avoid method_missing and reduce method callsAaron Patterson2010-09-101-1/+1
|