aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Deprecate the `:distinct` option for `Relation#count`.Yves Senn2013-03-151-2/+7
* rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works.Yves Senn2013-03-151-2/+2
* copy edits [ci skip]Vijay Dev2013-02-151-1/+1
* Add ActiveRecord.count documentation when used on group relationsMaurizio De Santis2013-02-071-0/+6
* `#count` in conjunction with `#uniq` performs distinct count.Yves Senn2013-01-261-1/+2
* Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find-by"Guillermo Iguaran2013-01-181-1/+1
* User Rails 4 find_byrobertomiranda2013-01-181-1/+1
* These are already required through AS/railsAkira Matsuda2013-01-071-2/+0
* warning removed: shadowing outer local variableArun Agrawal2012-12-301-2/+2
* fix time typcasting on group counts in PGAaron Patterson2012-12-281-2/+5
* mysql does not return alias names, so fall backAaron Patterson2012-12-281-4/+10
* fix PG typecasting errorsAaron Patterson2012-12-281-2/+5
* Cleans and removes useless 'Examples' tag [ci skip]Alvaro Pereyra2012-12-011-7/+2
* copy edits [ci skip]Vijay Dev2012-12-011-1/+1
* Fix Calculations#pluck doc to mention several attributes can be selected [ci ...Florent Guilleux2012-12-011-3/+3
* Deprecate Relation#sum with a block.Carlos Antonio da Silva2012-11-211-0/+6
* Revert "Yield only one argument instead of splatting."Carlos Antonio da Silva2012-11-211-14/+3
* Remove not used require and some useless test commentsCarlos Antonio da Silva2012-11-171-2/+0
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-11-171-1/+1
|\
| * 1.9 Syntax related changesAvnerCohen2012-11-101-1/+1
* | arel columns can be used for grouping so that "weird" column names are usableAaron Patterson2012-11-151-0/+4
* | stop hardcoding FrontBase adapter conditionalsAaron Patterson2012-11-151-1/+1
* | stop passing *args to generate aliasesAaron Patterson2012-11-151-4/+2
* | create fewer relation objectsAaron Patterson2012-11-151-3/+6
* | `#pluck` can be used on a relation with `select` clause.Yves Senn2012-11-121-1/+3
|/
* use columns hash to look up the column for the count fieldAaron Patterson2012-10-171-1/+1
* ActiveRecord: sum expression returns string '0' for no records, fixedTim Macfarlane2012-10-151-1/+1
* Fix pluck when columns/tables are reserved words.Ian Lesperance2012-09-051-1/+1
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
* Ensure Arel columns are typecasted properly when grouping with calculationCarlos Antonio da Silva2012-06-251-6/+6
* Stop assuming strings for grouped calculationsErnie Miller2012-06-241-6/+17
* Add changelog entry and guide updates for pluck with multiple columnsCarlos Antonio da Silva2012-06-221-0/+1
* Refactor pluck with multiple columnsCarlos Antonio da Silva2012-06-221-26/+13
* ActiveRecord#pluck now accepts multiple columnsjeroeningen2012-06-221-15/+35
* Extract conditional to a method to avoid duplicationRafael Mendonça França2012-06-191-15/+19
* handle joins/includes correctly for pluck and calculation.Andrey Deryabin2012-06-191-1/+6
* Fix wrong example for count method with block [ci skip]Carlos Antonio da Silva2012-05-311-1/+1
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-301-1/+1
|\
| * "a sql" -> "an SQL" per API documentation guidelinesMark Rushakoff2012-05-271-1/+1
* | Yield only one argument instead of splatting.Carlos Antonio da Silva2012-05-281-2/+2
* | Allow blocks for count with ActiveRecord::Relation. Document and test that su...chrisfinne2012-05-281-3/+14
|/
* 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