aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation
Commit message (Collapse)AuthorAgeFilesLines
* Special treatement for Relation#select { with block }Pratik Naik2010-06-031-1/+14
|
* To allow proper fisting of stack traceSantiago Pastorino2010-05-141-3/+3
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* revises the rdoc of #average according to 5f3bd55, and realigns when clausesXavier Noria2010-05-121-5/+4
|
* type_cast_calculated_value refactor: value is never a Fixnum here. Fix test ↵Santiago Pastorino2010-05-111-1/+1
| | | | | | | | since SQLite returns Float. [#4514 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Improve code from 231d7676f72947bae765b9bd885b134aaf949921Pratik Naik2010-05-091-7/+5
|
* corrected AR find_each and find_in_batches to raise when the user uses ↵Josh Kalderimis2010-05-091-1/+8
| | | | | | select but does not specify the primary key Signed-off-by: José Valim <jose.valim@gmail.com>
* Here the intention was to assign to different objectsSantiago Pastorino2010-05-081-1/+1
|
* Make find_or_create and find_or_initialize work mixing explicit parameters ↵Santiago Pastorino2010-05-071-9/+13
| | | | | | and a hash [#4457 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix unintuitive behavior with multiple order and group clausesErnie Miller2010-05-063-8/+9
| | | | | | [#4545 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow pre-casted values (other than nil) to pass through from calculations ↵Brian Lopez2010-05-041-5/+9
| | | | | | | | un-touched [#4514 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix eager loading of associations causing table name collisionsErnie Miller2010-04-282-32/+42
| | | | | | [#4463 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* 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
|