Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Allow pre-casted values (other than nil) to pass through from calculations ↵ | Brian Lopez | 2010-05-04 | 1 | -5/+9 |
| | | | | | | | | un-touched [#4514 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix eager loading of associations causing table name collisions | Ernie Miller | 2010-04-28 | 2 | -32/+42 |
| | | | | | | [#4463 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Some require indifferent_access added | Santiago Pastorino | 2010-04-21 | 1 | -0/+1 |
| | | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)> | ||||
* | Build PredicateBuilder object only when needed | Pratik Naik | 2010-04-21 | 1 | -3/+1 |
| | |||||
* | Fix evals missing context | Jeremy Kemper | 2010-04-10 | 1 | -3/+3 |
| | |||||
* | Avoid deprecated String#to_a by using Array.wrap(...) instead of Array(...) | Jeremy Kemper | 2010-04-10 | 1 | -1/+2 |
| | |||||
* | Raise a StatementInvalid error when trying to build a condition with hash ↵ | Carl Lerche | 2010-04-03 | 1 | -1/+3 |
| | | | | keys that do not correspond to columns. | ||||
* | Goodbye ActiveRecord::NamedScope::Scope | Pratik Naik | 2010-04-02 | 1 | -1/+1 |
| | |||||
* | Make Relation#first and Relation#last behave like named scope's | Pratik Naik | 2010-04-02 | 1 | -2/+18 |
| | |||||
* | Add Relation extensions | Pratik Naik | 2010-04-02 | 2 | -8/+28 |
| | |||||
* | Consistency when using Relation constants | Pratik Naik | 2010-04-02 | 1 | -2/+2 |
| | |||||
* | Arel now handles ranges with excluded end. | Emilio Tagua | 2010-03-29 | 1 | -6/+1 |
| | |||||
* | Warn scoped order and limit are ignored. [#4123 state:resolved] | Emilio Tagua | 2010-03-29 | 1 | -1/+5 |
| | |||||
* | adds missing requires for Object#blank? and Object#present? | Xavier Noria | 2010-03-28 | 5 | -0/+10 |
| | |||||
* | Move methods from association to relation finder methods. | Emilio Tagua | 2010-03-25 | 1 | -2/+11 |
| | |||||
* | Refactor relation merging to create just one relation and then assign ↵ | Emilio Tagua | 2010-03-25 | 1 | -22/+14 |
| | | | | values, instead of creating multiple relation objects. | ||||
* | From and lock should be defined to be consistent with other ivars. Limit and ↵ | Emilio Tagua | 2010-03-22 | 1 | -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 Patterson | 2010-03-18 | 1 | -0/+1 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Arel now fallback to using Arel::Attribute if the table/column doesn't exists. | Emilio Tagua | 2010-03-10 | 1 | -3/+1 |
| | | | | | | [#4142 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | removing spawn from SpawnMethods | Aaron Patterson | 2010-03-10 | 2 | -12/+8 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Fix scope loading issue when the table doesn't exist | Pratik Naik | 2010-03-10 | 1 | -1/+3 |
| | |||||
* | refactoring build_where | Aaron Patterson | 2010-03-06 | 1 | -7/+7 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | avoid @lock_value not initialized warning | Santiago Pastorino | 2010-02-22 | 1 | -1/+1 |
| | |||||
* | Move batch finders to Relation | Pratik Naik | 2010-02-12 | 1 | -0/+78 |
| | |||||
* | Rely on arel to generate the correct sql when an empty array is supplied to ↵ | Pratik Naik | 2010-01-30 | 1 | -1/+1 |
| | | | | IN predicate | ||||
* | Clear up some ivar warnings | Jeremy Kemper | 2010-01-27 | 1 | -3/+13 |
| | |||||
* | Simplify finder method definitions | Pratik Naik | 2010-01-21 | 1 | -13/+11 |
| | |||||
* | Supplying Arel::SqlLiteral is much faster | Pratik Naik | 2010-01-21 | 1 | -5/+12 |
| | |||||
* | Use quoted_table_name with arel.from() if no from values explicitly ↵ | Pratik Naik | 2010-01-21 | 1 | -2/+4 |
| | | | | supplied. Arel seems to be spending a lot of time figuring out the FROM value otherwise. | ||||
* | Relation#spawn is basically clone + reset | Pratik Naik | 2010-01-21 | 1 | -12/+2 |
| | |||||
* | Always use table.* in the finder query unless specified | Pratik Naik | 2010-01-21 | 1 | -1/+1 |
| | |||||
* | Use @limit_value and @offset_value instead of calling arel | Pratik Naik | 2010-01-20 | 1 | -4/+4 |
| | |||||
* | Base.merge_conditions is no longer needed | Pratik Naik | 2010-01-20 | 1 | -2/+2 |
| | |||||
* | Delegate exists? to Relation | Pratik Naik | 2010-01-20 | 1 | -3/+33 |
| | |||||
* | Move array_of_strings? to Relation | Pratik Naik | 2010-01-20 | 1 | -2/+6 |
| | |||||
* | Delegate all finders to Relation | Pratik Naik | 2010-01-20 | 2 | -42/+153 |
| | |||||
* | Ignore order for simple calculations to make postgresql happy | Pratik Naik | 2010-01-20 | 1 | -1/+2 |
| | |||||
* | Remove Relation#where_clause | Pratik Naik | 2010-01-19 | 1 | -2/+2 |
| | |||||
* | Rename CalculationMethods to Calculations and get rid of the old ↵ | Pratik Naik | 2010-01-19 | 1 | -1/+1 |
| | | | | Calculations module | ||||
* | Move the only remaining calculation method calculate() to Relation | Pratik Naik | 2010-01-19 | 1 | -30/+61 |
| | |||||
* | Get rid of construct_count_options_from_args | Pratik Naik | 2010-01-19 | 1 | -30/+0 |
| | |||||
* | Delegate count to Relation | Pratik Naik | 2010-01-19 | 2 | -5/+67 |
| | |||||
* | Delegate :average, :minimum, :maximum, :sum to Relation | Pratik Naik | 2010-01-19 | 1 | -8/+36 |
| | |||||
* | Add Relation#construct_relation_for_association_calculations for ↵ | Pratik Naik | 2010-01-19 | 1 | -0/+6 |
| | | | | calculations with includes | ||||
* | Add Relation#find_with_associations to load relation with eager loaded ↵ | Pratik Naik | 2010-01-19 | 1 | -0/+36 |
| | | | | associations | ||||
* | Handle invalid query IN() generated when a blank array is supplied in hash ↵ | Pratik Naik | 2010-01-18 | 1 | -1/+2 |
| | | | | conditions | ||||
* | Dont check for class equaity when merging relations | Pratik Naik | 2010-01-18 | 1 | -4/+0 |
| | |||||
* | Inherit named scope class Scope from Relation | Pratik Naik | 2010-01-18 | 2 | -4/+4 |
| | |||||
* | Make relations work as scopes | Pratik Naik | 2010-01-17 | 1 | -3/+7 |
| | |||||
* | Make merging of order values consistent | Pratik Naik | 2010-01-17 | 1 | -1/+1 |
| |