aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/builder
Commit message (Expand)AuthorAgeFilesLines
* Ruby 2.7 warning: creating a Proc without a blockutilum2019-02-131-2/+2
* Fix call sitesGannon McGibbon2018-10-021-1/+1
* Add `Style/RedundantFreeze` to remove redudant `.freeze`Yasuo Honda2018-09-291-1/+1
* Avoid extra touch queries when counter cache is updatedRyuta Kamizono2018-09-271-2/+8
* Refactor counter cache to extract `decrement_counters_before_last_save` on th...Ryuta Kamizono2018-09-271-37/+6
* Update counter cache in memory if parent target is existedRyuta Kamizono2018-09-261-10/+3
* Don't update counter cache unless the record is actually savedRyuta Kamizono2018-09-191-3/+1
* Enable Style/ParenthesesAroundCondition copRyuta Kamizono2018-08-191-1/+1
* Extract `Relation#update_counters` for internal useRyuta Kamizono2018-07-301-6/+4
* Removed useless utility classes inside HABTM association builderBogdan Gusiev2018-06-191-37/+16
* Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-271-1/+2
* Fix `belongs_to_counter_cache_after_update` to respect polymorphic type changeRyuta Kamizono2018-05-271-1/+1
* Avoid a subquery in updating counter cacheRyuta Kamizono2018-05-261-6/+1
* Fix `belongs_to_counter_cache_after_update` to respect custom primary key cou...Ryuta Kamizono2018-05-261-0/+13
* Remove passing argument to singular and collection association readersRyuta Kamizono2018-01-051-2/+2
* Fix conflicts `counter_cache` with `touch: true` by optimistic locking.bogdanvlviv2017-12-121-3/+7
* Merge pull request #31005 from shuheiktgw/remove_unnecessary_semicolonsMatthew Draper2017-10-281-1/+1
* [Active Record] require => require_relativeAkira Matsuda2017-10-211-1/+1
* Remove the code that swapping `scope` and `options`Ryuta Kamizono2017-09-181-5/+0
* Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-3/+1
|\
| * Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-3/+1
* | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-197-0/+14
|/
* [Active Record] require => require_relativeAkira Matsuda2017-07-011-1/+1
* Delete stale comment for `AR::Associations::Builder::CollectionAssociation`fatkodima2017-07-011-2/+0
* Evaluate the default block only when necessaryRyuta Kamizono2017-03-201-1/+1
* Add :default option to belongs_to (#28453)George Claghorn2017-03-171-1/+8
* Fix Rubocop violations and fix documentation visibilityRafael Mendonça França2016-12-281-3/+3
* Introduce `reload_<association>` reader for singular associations.Yves Senn2016-11-221-1/+10
* Deprecate the behavior of AR::Dirty inside of after_(create|update|save) call...Sean Griffin2016-11-011-14/+16
* Fix HABTM associations join table resolver bug on constants and symbolsMehmet Emin İNAÇ2016-10-271-1/+1
* applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
* normalizes indentation and whitespace across the projectXavier Noria2016-08-061-22/+22
* applies new string literal convention in activerecord/libXavier Noria2016-08-062-2/+2
* Move the warning about composite primary key to `AttributeMethods::PrimaryKey`Ryuta Kamizono2016-07-021-2/+4
* Fix counter_cache double increment bugTom Kadwill2016-04-281-0/+2
* don't treat all associations with extensions as instance dependent.Yves Senn2016-03-031-1/+5
* eliminate warnings about multiple primary keys on habtm join tablesAaron Patterson2016-02-191-0/+3
* Define `:foreign_type` as a valid option in `SingularAssociation`yui-knk2016-01-193-3/+3
* Make sure we touch all the parents when touch_later.Arthur Neves2015-12-061-2/+1
* Update belongs_to.rbEhsan Yousefi2015-11-081-2/+1
* Ensure `has_and_belongs_to_many` works with `belongs_to_required_by_default`Sean Griffin2015-10-291-2/+2
* Merge pull request #19686 from tsun1215/index_errorsSean Griffin2015-10-261-1/+1
|\
| * Errors can be indexed with nested attributesMichael Probber2015-04-171-1/+1
* | docs, add missing `:nodoc: for `Associations::Builder`. [ci skip]Yves Senn2015-10-137-9/+9
* | use correct DB connection for generated HABTM tableMatt Hanlon2015-08-071-3/+7
* | Fix counter_cache for polymorphic associationsStefan Kanev2015-07-191-4/+12
* | Rename association option :class to :anonymous_classAndrew White2015-04-212-2/+2
|/
* Batch touch parent recordsArthur Neves2015-04-081-6/+7
* Freeze static arguments for gsubbrainopia2015-04-021-1/+1
* Prefer string patterns for gsubbrainopia2015-04-021-1/+1