aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Rename Model.active_relation to Model.unscopedPratik Naik2010-01-171-2/+2
* Get rid of Base#merge_includesPratik Naik2010-01-161-1/+2
* Make sure Model#active_relation always adds STI conditions if neededPratik Naik2010-01-161-4/+0
* Use Relation#apply_finder_options from calculationsPratik Naik2010-01-161-16/+3
* Remove scope related code from construct_joinPratik Naik2010-01-161-1/+1
* Make scopes use relations under the hoodPratik Naik2010-01-161-24/+49
* Rename Model.arel_table to Model.active_relationPratik Naik2010-01-021-2/+2
* Migrate all the calculation methods to RelationPratik Naik2009-12-291-143/+57
* Add Model.having and Relation#havingPratik Naik2009-12-291-1/+1
* Rename Model.conditions and relation.conditions to .wherePratik Naik2009-12-261-1/+1
* Revert "Split arel_table into method to get a relation and another to memoize...Jeremy Kemper2009-11-131-2/+2
* Split arel_table into method to get a relation and another to memoize the def...Jeremy Kemper2009-11-131-2/+2
* Use immutable relation objects to generate queries.Emilio Tagua2009-08-181-8/+7
* Use finder options as relation method names to provide more familiarEmilio Tagua2009-08-181-9/+9
* Remove group when building the relation, it will be added later ifEmilio Tagua2009-08-161-1/+0
* Don't use regular rinder on calculations since scoping order blowsEmilio Tagua2009-08-141-1/+7
* Use ARel's joins when building a query for finding records with includedEmilio Tagua2009-08-141-17/+6
* Merge commit 'rails/master'Emilio Tagua2009-08-101-1/+0
|\
| * Adding :from scoping to ActiveRecord calculationsMatt Duncan2009-08-091-0/+2
* | Don't scope order in calculations.'Emilio Tagua2009-08-071-1/+1
* | More work on removing plain SQL from associations and use ARel instead.Emilio Tagua2009-08-071-11/+20
* | Refactoring: Calculations now use construct_finder_sql instead they own method.Emilio Tagua2009-06-231-19/+4
* | Merge commit 'rails/master'Emilio Tagua2009-06-021-1/+1
|\|
| * Break up DependencyModule's dual function of providing a "depend_on" DSL and ...Joshua Peek2009-05-281-1/+1
* | Refactors to work with latest Arel implementation.Emilio Tagua2009-06-021-10/+9
* | Merge commit 'rails/master'Emilio Tagua2009-05-121-3/+2
|\|
| * Use DependencyModule for included hooks in ActiveRecordBryan Helmkamp2009-05-111-3/+2
* | Refactor to calculations. Migration's versions are string not integer. ARel s...Emilio Tagua2009-05-061-9/+8
* | Fixes to have all test passing on PostgreSQL.Emilio Tagua2009-05-041-6/+22
* | Refactor to use arel_table method, and also use the same method name for inst...Emilio Tagua2009-05-021-9/+7
* | Calculations now use Arel to construct the query.Emilio Tagua2009-04-291-111/+86
|/
* Ensure calculations respect scoped :select [#1334 state:resolved]stopdropandrew2009-03-071-5/+13
* Allow :having conditions to be sanitized like regular :condition. [#2158 stat...Will Bryant2009-03-061-3/+5
* Merge docrailsPratik Naik2009-01-181-8/+16
* Make sure any Fixnum returned by a DB sum is type cast to a Float before stan...Ken Collins2008-11-131-1/+1
* Add simple case when DB calculations returns 0 instead of 0.0 [#1346 state:re...Joshua Peek2008-11-101-1/+1
* If average value from DB is 0, make sure to convert it to a 0.0 float before ...Ken Collins2008-11-071-1/+1
* Ensure Model.sum and Model.avg typecast appropriately. [#1066 state:resolved]Pratik Naik2008-10-041-3/+7
* Remove AS for oracle compatibilityMichael Koziarski2008-10-031-1/+1
* Interpolation requires double quotesMichael Koziarski2008-09-091-1/+1
* Merge docrailsPratik Naik2008-09-031-2/+2
* Merge scoped :joins together instead of overwriting them. May expose scoping ...Andrew White2008-08-281-1/+1
* Alias included associations if needed when doing a countTarmo Tänav2008-08-271-2/+8
* Performance: reduce garbage created by ActiveRecord::Calculations#column_alia...Joshua Peek2008-08-261-1/+8
* Alias subquery used in calculations, to provide better compatibility with dat...Michalis Polakis2008-08-111-1/+1
* Add :from option to calculations. [#397 state:resolved]Ben Munat2008-06-111-3/+9
* Ensure AR#sum result is typecasted properlyPratik Naik2008-06-021-2/+3
* Ensure Associations#sum returns 0 when no rows are returned. [#295 state:reso...Jonathan Viney2008-06-021-3/+3
* Merge docrails.Pratik Naik2008-05-251-10/+12
* Improve documentation coverage and markupXavier Noria2008-05-021-6/+6