aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/calculations.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* Refactor Calculations#execute_grouped_calculation and clean AR test caseRafael Sales2015-10-221-10/+4
* Fix generated projection fields in group by queryRafael Sales2015-10-221-1/+2
* Merge pull request #20653 from repinel/allow-arel-select-countSean Griffin2015-10-201-1/+3
|\
| * Allow select with Arel and count as well as calculations with ArelRoque Pinel2015-06-301-1/+3
* | Qualify column names in calculationSoutaro Matsumoto2015-10-201-1/+1
* | applies new doc guidelines to Active Record.Yves Senn2015-10-141-15/+16
* | docs, fix highlighting for code examples in calculations.rb [ci skip]Yves Senn2015-10-131-20/+20
* | `column_alias_for` method is no more supporting *keys [ci skip]amitkumarsuroliya2015-09-261-1/+0
* | remove warning from Calculations#sumyuuji.yaginuma2015-09-231-1/+1
* | Fix arguments of `AR::Calculations#sum`yui-knk2015-09-231-3/+3
* | [skip ci] #distinct instead of #uniqJon Atack2015-07-031-2/+3
|/
* Update .pluck documentation on uniqPrem Sichanugrist2015-06-261-1/+1
* Include `Enumerable` in `ActiveRecord::Relation`Sean Griffin2015-06-191-6/+3
* Use `Enumerable#sum` on `ActiveRecord::Relation` when a block is givenSean Griffin2015-06-191-2/+6
* Allow Enumerable#pluck to take a splat.Kevin Deisz2015-05-291-0/+4
* Enhance documentation of pluck with a hint to ids [ci skip]wingfire2015-04-121-3/+5
* Drop `references_eager_loaded_tables?` test from `has_include?`Ben Woosley2015-03-171-1/+1
* Spell PostgreSQL correctly :elephant:Akira Matsuda2015-02-281-1/+1
* `Type#type_cast_from_database` -> `Type#deserialize`Sean Griffin2015-02-171-2/+2
* Attribute assignment and type casting has nothing to do with columnsSean Griffin2015-01-311-1/+1
* Don't error when grouped calculations return 0 recordsSean Griffin2015-01-281-1/+1
* Remove Relation#bind_paramsSean Griffin2015-01-271-3/+3
* Unify access to bind values on RelationSean Griffin2015-01-271-9/+3
* Change `having_values` to use the `WhereClause` classSean Griffin2015-01-261-1/+1
* Remove support to activerecord-deprecated_findersRafael Mendonça França2015-01-021-25/+12