aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix typo in commentCade Truitt2014-07-021-1/+1
* Encapsulate knowledge of type objects on `ActiveRecord::Result`Sean Griffin2014-06-221-10/+1
* Don't use `Column` for type casting in Relation calculationsSean Griffin2014-06-181-12/+8
* [ci skip] add API doc for AR Group.Aditya Kapoor2014-06-171-1/+9
* Pluck should work with columns of the same name from different tablesSean Griffin2014-06-111-3/+1
* Rename `type_cast` to `type_cast_from_database`Sean Griffin2014-06-091-2/+2
* reuse available belongs_to? methodeileencodes2014-06-031-1/+1
* Remove unused `initialize_attributes` methodSean Griffin2014-06-021-1/+1
* Merge pull request #15210 from arthurnn/fix_hbtm_reflectionArthur Neves2014-05-241-1/+1
* docs, explain usage of `count` + `select`. Closes #15065. [ci skip]Yves Senn2014-05-131-0/+8
* push up bind params on "simple" subquery calculationsAaron Patterson2014-05-021-2/+4
* Merge branch 'master' into adequaterecordAaron Patterson2014-04-201-1/+1
|\
| * Make sure the column_name is different from 'all'.Lauro Caetano2014-04-141-1/+1
* | Merge branch 'master' into adequaterecordAaron Patterson2014-04-071-1/+1
|\|
| * Ignore order when doing count.Lauro Caetano2014-04-071-1/+1
* | adding bind values to the manager objectAaron Patterson2014-01-131-1/+5
|/
* Mark the arguments needed by activerecord-deprecated_finders with a TODORafael Mendonça França2013-12-111-0/+12
* Revert "Merge pull request #12518 from vipulnsward/remove_count_options"Rafael Mendonça França2013-12-111-12/+13
* Fix type cast on group sum with custom expressionPaul Nikitochkin2013-12-101-1/+3
* Stop accepting `options` for `Relation#average`, `Relation#minimum`, `Relatio...Vipul A M2013-10-141-10/+10
* `Relation#count` doesn't use options anymore.Vipul A M2013-10-131-3/+2
* Don't use Enumerable#next in pluck since it is very slowRyan Wallace2013-08-301-2/+1
* re-introduce `select_for_count` private method.Yves Senn2013-07-141-5/+10
* no need to to_sym the column name, leave it as-isAaron Patterson2013-07-021-1/+1
* avoid intermediate zipped arrayAaron Patterson2013-07-011-3/+2
* make the identity type a singleton to save on object creationAaron Patterson2013-07-011-3/+1
* only deal with strings internallyAaron Patterson2013-07-011-3/+3
* build an AST rather than slapping strings togetherAaron Patterson2013-07-011-11/+7
* stop exposing the underlying alias datastructureAaron Patterson2013-07-011-4/+4
* Remove deprecated `:distinct` option from `Relation#count`.Yves Senn2013-07-011-5/+0
* Simplify/fix implementation of default scopesJon Leighton2013-06-281-9/+3
* Remove fall back and column restrictions for `count`.Yves Senn2013-06-091-10/+6
* Merge pull request #10561 from Empact/nix-throwresultJon Leighton2013-06-071-2/+0
|\
| * Rather than raising ThrowResult when construct_limited_ids_conditions comes u...Ben Woosley2013-05-101-4/+0
| * Fix that #pluck wasn't rescuing ThrowResult, meaning it would blow up when fa...Ben Woosley2013-05-101-0/+2
* | Remove #sum with a block was deprecated.kennyj2013-06-011-9/+1
|/
* Handle aliased attributes in ActiveRecord::Relation.Godfrey Chan2013-05-011-8/+18
* Prefer find_by over dynamic finders in rdocSam Ruby2013-04-021-1/+1
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-03-301-1/+1
|\
| * Uniq cannot be used directly on an ActiveRecord model. 'DISTINCT field' is th...Daniel Lobato2013-03-121-1/+1
* | 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