aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Remove blank trailing commentsHenrik Hodne2012-05-201-1/+0
* assuming there is only one column, we can simplify the type cast loopAaron Patterson2012-05-161-7/+6
* MySQL returns "SUM(DISTINCT(credit_limit))" as the column name unlessAaron Patterson2012-05-161-4/+11
* Fixes issue where SQL fragments prevented type casting based on column type.Erich Menge2012-05-161-8/+3
* Expand and improve #pluck docsJeremy Kemper2012-05-151-6/+27
* Restore support for Model.pluck('sql fragment')Jeremy Kemper2012-05-151-1/+2
* Lowercase.Ben Pickles2012-05-011-1/+1
* Add ActiveRecord::Base#idstwinturbo2012-04-301-0/+10
* extract deprecated #calculate codeJon Leighton2012-04-131-83/+25
* use a hash to store relation valuesJon Leighton2012-04-131-5/+5
* Missing generated query for pluck method. Juanjo Bazán2012-03-271-1/+1
* Merge pull request #4984 from raghunadhd/change_orderhashVijay Dev2012-03-031-1/+1
|\
| * Refactored codeRaghunadh2012-02-101-1/+1
* | use bind values for join columnsAaron Patterson2012-02-271-3/+4
* | typecast columns based on the returned typesAaron Patterson2012-02-091-2/+14
|/
* AR::Relation#pluck: improve to work with joinsBogdan Gusiev2012-02-081-0/+3
* rewrites a couple of alternations in regexps as character classesXavier Noria2012-01-301-1/+1
* Delete unnecessary line that was necessary before I changed the code and it b...Jon Leighton2011-12-221-1/+0
* Make ActiveRecord::Relation#pluck work with serialized attributesJon Leighton2011-12-221-4/+4
* ActiveRecord::Relation#pluck methodBogdan Gusiev2011-11-301-0/+17
* Make it the responsibility of the connection to hold onto an ARel visitor for...Jon Leighton2011-08-081-2/+2
* Fixed failing query when performing calculation with having based on select.Dmitriy Kiriyenko2011-07-271-0/+1
* Fixed AR::Relation#sum compatibility with Array#sumBogdan Gusiev2011-07-051-2/+6
* Apply the default scope earlier when doing calculations. Fixes #1682.Jon Leighton2011-06-231-5/+11
* Ensure that calculations properly override the select value even if it's set ...Jon Leighton2011-05-311-2/+2
* Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-4/+4
* Bug fixes:Fadzril Muhamad & Joseph Palermo2011-05-121-5/+4
* Ensure that ORDER BY clauses from default scopes are not included in calculat...Jon Leighton2011-05-081-1/+1
* Use Arel to build subquery. Adapt tests to changed fixtures.John Mileham2011-03-241-13/+12
* Change behavior of count(:limit => x, :offset => y) to limit/offset before co...John Mileham2011-03-031-14/+26
* removing limits and offsets from COUNT queries unless both are specified. [#6...Aaron Patterson2011-02-251-1/+13
* The type_cast_calculated_value method will trust DB types before casting to a...Ken Collins2011-02-031-1/+1
* Always return decimal average of integer fieldsRaimonds Simanovskis2011-01-101-9/+5
* ActiveRecord::Relation#primary_key should return a string, just like ActiveRe...Jon Leighton2011-01-031-1/+1
* Rename AssociationReflection#primary_key_name to foreign_key, since the optio...Jon Leighton2010-12-311-1/+1
* just grep the AST for OuterJoin nodes rather than converting the tree to SQLAaron Patterson2010-11-301-1/+1
* reduce method calls on arelAaron Patterson2010-11-301-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
* 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 [#572...Marcelo Giorgi2010-10-111-4/+8
* [#5441 state:resolved] refactoring code to determine aggregate columnAaron Patterson2010-09-301-11/+14
* refactoring to remove crazy logicAaron Patterson2010-09-281-1/+5
* fisting the postgresql testsAaron Patterson2010-09-281-1/+2
* avoid calling to_sql when we canAaron Patterson2010-09-281-3/+3
* removing an inject + merge in favor of Hash#[]Aaron Patterson2010-09-281-1/+1
* Goodbye inject, hello map.Emilio Tagua2010-09-221-7/+5
* return is not needed hereNeeraj Singh2010-09-091-2/+2
* remove unnecessary callNeeraj Singh2010-09-091-1/+0
* attributes should be constructed with table objectsAaron Patterson2010-09-071-1/+1