aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_many_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Enable `Layout/EmptyLinesAroundAccessModifier` copRyuta Kamizono2019-06-131-1/+0
* Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-131-9/+5
* Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-051-14/+10
|\
| * Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-051-14/+10
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-151-1/+1
|/
* Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-041-0/+1
* Rename union to intersectionFlorian Ebeling2018-11-061-1/+1
* Fix handling of duplicates for `replace` on has_many-throughFlorian Ebeling2018-11-061-0/+8
* Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-1/+1
|\
| * Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-1/+1
* | Fix broken doc for Active Record [ci skip]Yoshiyuki Hirano2017-08-251-1/+1
* | 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
* | Prevent double firing the before save callback of new object when the parent ...Ryuta Kamizono2017-04-211-6/+1
|/
* `self.` is not needed when calling its own instance methodAkira Matsuda2017-01-051-1/+1
* Merge pull request #26352 from kamipo/avoid_to_call_set_inverse_instance_twiceArthur Nogueira Neves2017-01-031-1/+0
|\
| * Avoid to call `set_inverse_instance` twice for `has_many` associationRyuta Kamizono2016-12-281-1/+0
* | Remove deprecated i18n scopes in Active RecordRafael Mendonça França2016-12-291-8/+1
|/
* Fixes TypeError Exception when cache counter value equals nil (#26940)Daniel E. Garcia Shulman2016-11-021-1/+1
* fixes remaining RuboCop issues [Vipul A M, Xavier Noria]Xavier Noria2016-09-011-1/+1
* modernizes hash syntax in activerecordXavier Noria2016-08-061-2/+2
* Fixed unnecessary nesting in handle_dependencyHerman Hiddema2016-07-041-7/+5
* Make #increment! and #decrement! methods concurency safeBogdan Gusiev2015-10-051-8/+2
* Clean up the implementation of AR::DirtySean Griffin2015-09-241-1/+1
* `restrict_with_error` message will now respect owner’s human name in any lo...Ronak Jangir2015-09-121-1/+1
* HasManyAssociation: moved half of counter cache code to reflectionBogdan Gusiev2015-09-031-60/+9
* Merge pull request #19683 from tristang/require-option-for-counter-cacheRafael Mendonça França2015-08-131-1/+8
|\
| * Require explicit counter_cache option for has_manyTristan Gamilis2015-04-071-1/+8
* | Deprecate and rename the keys for association restrict_dependent_destroyRoque Pinel2015-07-201-1/+8
|/
* Correct errors in counter cache updatingSean Griffin2015-02-031-1/+5
* Improve consistency of counter caches updating in memorySean Griffin2015-01-261-5/+15
* Deprecate `false` as the way to halt AR callbacksclaudiob2015-01-021-1/+1
* Share foreign_key_present? implementation in _has_ associationsbrainopia2014-12-311-8/+1
* Improve the performance of reading attributesSean Griffin2014-11-181-1/+1
* Don't expose these new APIs yet (added in 877ea78 / #16189)Godfrey Chan2014-08-161-1/+1
* Implement `_was` and `changes` for in-place mutations of AR attributesSean Griffin2014-08-161-1/+1
* Redefine macro checks for reflectionseileencodes2014-07-301-1/+1
* Merge pull request #15266 from dv/use_counter_cache_for_empty_callGodfrey Chan2014-07-151-0/+8
|\
| * If a counter_cache exists, use it for #empty?David Verhasselt2014-06-101-0/+8
* | Deprecate automatic counter caches on has_many :throughSean Griffin2014-06-261-1/+9
* | Always update counter caches in memory when adding recordsSean Griffin2014-06-161-0/+26
|/
* Merge pull request #15210 from arthurnn/fix_hbtm_reflectionArthur Neves2014-05-241-1/+2
* remove count vareileencodes2014-05-131-4/+2
* rename delete_all_records to delete_or_nullify_all_recordseileencodes2014-05-131-1/+1
* remove need for :all symboleileencodes2014-05-131-13/+6
* begin refactoring delete_records methodeileencodes2014-05-131-12/+25
* read_attribute is public, so we should just call itAaron Patterson2014-04-131-1/+1
* make tests pass on Ruby 2.2Aaron Patterson2014-03-131-4/+4
* fix HABTM w/out primary key errors on destructionKevin Casey2014-02-021-1/+1