aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix formatting of `pick` [ci skip]yuuji.yaginuma2018-02-101-1/+1
* Add Relation#pick as short-hand for single-value plucks (#31941)David Heinemeier Hansson2018-02-091-0/+18
* Avoid extra calls to to_sDaniel Colson2018-01-291-1/+1
* Fix `count(:all)` with eager loading and having an order other than the drivi...Ryuta Kamizono2018-01-251-1/+8
* Fix `count(:all)` to correctly work `distinct` with custom SELECT listRyuta Kamizono2017-12-201-10/+8
* try using regexesBen Toews2017-11-091-9/+3
* allow table name and direction in string order argBen Toews2017-11-091-23/+8
* allow Arel.sql() for pluckBen Toews2017-11-091-6/+14
* add config to check arguments to unsafe AR methodsBen Toews2017-11-091-14/+28
* Ensure `apply_join_dependency` for `collection_cache_key` if eager-loading is...Ryuta Kamizono2017-11-061-2/+2
* Fix `COUNT(DISTINCT ...)` for `GROUP BY` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-10-141-1/+1
* Remove meaningless named `construct_relation_for_association_calculations`Ryuta Kamizono2017-10-091-2/+3
* Ensure `1 AS one` for SQL Server with calculations.Ken Collins2017-09-221-1/+1
* Ensure sum honors distinct on has_many throughAaron Wortham2017-08-141-0/+3
* Merge pull request #29848 from kamipo/fix_distinct_count_with_order_and_limitRafael França2017-07-241-10/+19
|\
| * Should keep the table name qualified `*` for distinct subqueryRyuta Kamizono2017-07-221-1/+1
| * Fix `COUNT(DISTINCT ...)` with `ORDER BY` and `LIMIT`Ryuta Kamizono2017-07-221-10/+19
* | Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-241-3/+3
|/
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Skip query cache for in_batches and friendsEugene Kenny2017-07-061-3/+3
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Fix the next version of Rails from 5.3 to 6.0Ryuta Kamizono2017-06-291-2/+2
* Remove delegating to arel in a relationRyuta Kamizono2017-06-291-1/+1
* Deprecate passing arguments and block at the same time to `count` and `sum` i...Ryuta Kamizono2017-05-291-2/+20
* Don't pass `arel.engine` to `Arel::SelectManager.new`Ryuta Kamizono2017-05-051-2/+1
* Simply forward `Calculations#count` to `Enumerable#count`Ryuta Kamizono2017-03-101-7/+4
* Include selects in group query with having clauseEugene Kenny2017-02-261-0/+1
* Remove useless `select_values += select_values`Ryuta Kamizono2017-02-261-1/+0
* Suppress `DISTINCT` clause outside aggregate functionRyuta Kamizono2017-02-251-2/+2
* Revert "Remove useless `column_alias` in `subquery_for_count`"Ryuta Kamizono2017-02-071-2/+3
* Remove useless `column_alias` in `subquery_for_count`Ryuta Kamizono2017-02-061-3/+2
* `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* Avoid `unscope(:order)` when `limit_value` is presented for `count`Ryuta Kamizono2016-11-061-6/+6
* Use attribute_names over column_namesKeenan Brock2016-10-041-6/+2
* Merge pull request #26446 from kamipo/rename_type_var_name_to_typeEileen M. Uchitelle2016-09-171-10/+8
|\
| * Rename variable name that returning `type_for` to `type` from `column`Ryuta Kamizono2016-09-111-10/+8
* | Fix broken comments indentation caused by rubocop auto-correct [ci skip]Ryuta Kamizono2016-09-141-7/+7
|/
* Add `Type.default_value` and use it everywhere for internalRyuta Kamizono2016-08-261-1/+1
* Merge pull request #25976 from kamipo/pluck_uses_loaded_targetRafael França2016-08-171-1/+1
|\
| * `pluck` should use `records` (`load_target`) when `loaded?` is trueRyuta Kamizono2016-08-041-1/+1
* | Fix count which would sometimes force a DISTINCTMaxime Lapointe2016-08-161-6/+4
* | applies remaining conventions across the projectXavier Noria2016-08-061-3/+3
* | normalizes indentation and whitespace across the projectXavier Noria2016-08-061-148/+148
* | applies new string literal convention in activerecord/libXavier Noria2016-08-061-14/+14
|/
* Always prefer class types to query types when casting `group`Sean Griffin2016-07-111-4/+6
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-1/+1
* Forward ActiveRecord::Relation#count to Enumerable#count if block givenErik Michaels-Ober2016-03-191-1/+5
* Extract a Relation#arel_attributeMatthew Draper2016-02-041-1/+1
* Defer Arel attribute lookup to the model classMatthew Draper2016-02-041-10/+2