aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Collapse)AuthorAgeFilesLines
* Some require indifferent_access addedSantiago Pastorino2010-04-211-0/+1
| | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
* Build PredicateBuilder object only when neededPratik Naik2010-04-211-3/+1
|
* Fix evals missing contextJeremy Kemper2010-04-101-3/+3
|
* Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...)Jeremy Kemper2010-04-101-1/+2
|
* Raise a StatementInvalid error when trying to build a condition with hash ↵Carl Lerche2010-04-031-1/+3
| | | | keys that do not correspond to columns.
* Goodbye ActiveRecord::NamedScope::ScopePratik Naik2010-04-021-1/+1
|
* Make Relation#first and Relation#last behave like named scope'sPratik Naik2010-04-021-2/+18
|
* Add Relation extensionsPratik Naik2010-04-022-8/+28
|
* Consistency when using Relation constantsPratik Naik2010-04-021-2/+2
|
* Arel now handles ranges with excluded end.Emilio Tagua2010-03-291-6/+1
|
* Warn scoped order and limit are ignored. [#4123 state:resolved]Emilio Tagua2010-03-291-1/+5
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-285-0/+10
|
* Move methods from association to relation finder methods.Emilio Tagua2010-03-251-2/+11
|
* Refactor relation merging to create just one relation and then assign ↵Emilio Tagua2010-03-251-22/+14
| | | | values, instead of creating multiple relation objects.
* From and lock should be defined to be consistent with other ivars. Limit and ↵Emilio Tagua2010-03-221-14/+4
| | | | | | | | offset are always defined, no need to test that. [#4253 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* kill where / having method redefine warnings. [#4225 state:resolved]Aaron Patterson2010-03-181-0/+1
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Arel now fallback to using Arel::Attribute if the table/column doesn't exists.Emilio Tagua2010-03-101-3/+1
| | | | | | [#4142 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* removing spawn from SpawnMethodsAaron Patterson2010-03-102-12/+8
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Fix scope loading issue when the table doesn't existPratik Naik2010-03-101-1/+3
|
* refactoring build_whereAaron Patterson2010-03-061-7/+7
| | | | Signed-off-by: wycats <wycats@gmail.com>
* avoid @lock_value not initialized warningSantiago Pastorino2010-02-221-1/+1
|
* Move batch finders to RelationPratik Naik2010-02-121-0/+78
|
* Rely on arel to generate the correct sql when an empty array is supplied to ↵Pratik Naik2010-01-301-1/+1
| | | | IN predicate
* Clear up some ivar warningsJeremy Kemper2010-01-271-3/+13
|
* Simplify finder method definitionsPratik Naik2010-01-211-13/+11
|
* Supplying Arel::SqlLiteral is much fasterPratik Naik2010-01-211-5/+12
|
* Use quoted_table_name with arel.from() if no from values explicitly ↵Pratik Naik2010-01-211-2/+4
| | | | supplied. Arel seems to be spending a lot of time figuring out the FROM value otherwise.
* Relation#spawn is basically clone + resetPratik Naik2010-01-211-12/+2
|
* Always use table.* in the finder query unless specifiedPratik Naik2010-01-211-1/+1
|
* Use @limit_value and @offset_value instead of calling arelPratik Naik2010-01-201-4/+4
|
* Base.merge_conditions is no longer neededPratik Naik2010-01-201-2/+2
|
* Delegate exists? to RelationPratik Naik2010-01-201-3/+33
|
* Move array_of_strings? to RelationPratik Naik2010-01-201-2/+6
|
* Delegate all finders to RelationPratik Naik2010-01-202-42/+153
|
* Ignore order for simple calculations to make postgresql happyPratik Naik2010-01-201-1/+2
|
* Remove Relation#where_clausePratik Naik2010-01-191-2/+2
|
* Rename CalculationMethods to Calculations and get rid of the old ↵Pratik Naik2010-01-191-1/+1
| | | | Calculations module
* Move the only remaining calculation method calculate() to RelationPratik Naik2010-01-191-30/+61
|
* Get rid of construct_count_options_from_argsPratik Naik2010-01-191-30/+0
|
* Delegate count to RelationPratik Naik2010-01-192-5/+67
|
* Delegate :average, :minimum, :maximum, :sum to RelationPratik Naik2010-01-191-8/+36
|
* Add Relation#construct_relation_for_association_calculations for ↵Pratik Naik2010-01-191-0/+6
| | | | calculations with includes
* Add Relation#find_with_associations to load relation with eager loaded ↵Pratik Naik2010-01-191-0/+36
| | | | associations
* Handle invalid query IN() generated when a blank array is supplied in hash ↵Pratik Naik2010-01-181-1/+2
| | | | conditions
* Dont check for class equaity when merging relationsPratik Naik2010-01-181-4/+0
|
* Inherit named scope class Scope from RelationPratik Naik2010-01-182-4/+4
|
* Make relations work as scopesPratik Naik2010-01-171-3/+7
|
* Make merging of order values consistentPratik Naik2010-01-171-1/+1
|
* Rename Model.active_relation to Model.unscopedPratik Naik2010-01-171-2/+2
|
* Improve the error message for class mismatch on Relation#mergePratik Naik2010-01-171-1/+3
|