aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/counter_cache.rb
Commit message (Expand)AuthorAgeFilesLines
* Remove unused splat args in `_create_record`Ryuta Kamizono2018-09-021-2/+1
* Extract `Relation#update_counters` for internal useRyuta Kamizono2018-07-301-21/+1
* Fix `touch` option to behave consistently with `Persistence#touch` methodRyuta Kamizono2018-06-181-12/+10
* Avoid a subquery in updating counter cacheRyuta Kamizono2018-05-261-1/+7
* removed unnecessary returnsShuhei Kitagawa2017-10-281-1/+1
* Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-1/+0
|\
| * Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-1/+0
* | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|/
* 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
* Revert "Don't guard against `touch: []`."Kasper Timm Hansen2017-01-151-1/+2
* Don't guard against `touch: []`.Kasper Timm Hansen2017-01-151-2/+1
* Add the touch option to ActiveRecord#increment! and decrement!akihiro172017-01-141-1/+2
* Counter cache touching don't need object finding anymoreRyuta Kamizono2017-01-031-6/+5
* Fix update counters of multiple records with touch: trueRyuta Kamizono2017-01-031-1/+1
* [ci skip] Use touch; slim wording.Kasper Timm Hansen2017-01-021-2/+2
* Fix grammar in active_record/counter_cache.rb [ci skip]kenta-s2017-01-021-3/+3
* `touch_time` should be type casted to respect the precision of the columnRyuta Kamizono2017-01-021-3/+1
* Prefer `each` over `map` because unused return valueRyuta Kamizono2017-01-021-1/+1
* Don't invoke `touch_updates` if `touch` does not suppliedRyuta Kamizono2017-01-021-3/+3
* Fix tests with counter cache touching and more.Kasper Timm Hansen2017-01-011-18/+10
* Added option to ActiveRecord::CounterCache methods.Jarred Trost2017-01-011-8/+68
* code gardening: removes redundant selfsXavier Noria2016-08-081-1/+1
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
* applies new string literal convention in activerecord/libXavier Noria2016-08-061-2/+2
* Pluralize counter_cache column name in example [ci skip]Amit Thawait2016-01-201-4/+4
* applies new doc guidelines to Active Record.Yves Senn2015-10-141-6/+6
* Improve consistency of counter caches updating in memorySean Griffin2015-01-261-1/+1
* Go through normal `update_all` logic when updating counter cachesSean Griffin2014-12-261-4/+3
* remove useless methodsSergey Alekseev2014-12-031-10/+0
* No need to call to_sym hereGodfrey Chan2014-09-201-1/+1
* Redefine macro checks for reflectionseileencodes2014-07-301-1/+1
* Add `:all` argument to `count` in `reset_counters`Cade Truitt2014-07-021-1/+1
* Refactoring .reflections public method.Arthur Neves2014-05-261-1/+1
* Merge pull request #15210 from arthurnn/fix_hbtm_reflectionArthur Neves2014-05-241-3/+2
* Updates reset_counters to allow counter name in paramsJason Normore2014-05-161-5/+10
* Restore the destroy_by_association check in post destroy counter cacheJean Boussier2014-04-151-2/+9
* Set _after_create_counter_called flag to make update counter cache workJean Boussier2014-04-151-1/+6
* Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-141-4/+4
* Use inheritance chain instead of callbacks to increment counter caches after ...Jean Boussier2014-04-141-0/+16
* Make counter cache decrementation on destroy idempotentJean Boussier2014-04-131-0/+21
* Spelling and Grammar checksAkshay Vishnoi2013-12-121-4/+4
* changed update counter to act on unscoped modelheruku2013-11-261-1/+1
* pass the pk to compile_updateAaron Patterson2013-11-161-1/+1
* update_counters accepts a hash, not an array of hashesMichael Kozono2013-05-211-1/+1
* `#reset_counters` verifies counter names.Yves Senn2013-03-151-1/+2
* grammar improvements for increment_counter and decrement_counter docsMatthew Robertson2012-12-021-6/+8
* increment_counter and decrement_counter can accept and array of ids as an argMatthew Robertson2012-12-021-2/+2
* 1.9 Syntax related changesAvnerCohen2012-11-101-2/+2
* RefactorSantiago Pastorino2012-10-031-5/+4