aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/association.rb
Commit message (Expand)AuthorAgeFilesLines
* Clarify collection proxy docsGannon McGibbon2019-02-081-0/+17
* Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-181-3/+1
* Merge pull request #34806 from bogdan/reuse-find-targetRyuta Kamizono2018-12-271-0/+16
|\
| * Reuse AR::Association#find_target methodBogdan Gusiev2018-12-271-0/+17
|/
* Revert "Merge pull request #34538 from bogdan/reuse-find-target"Ryuta Kamizono2018-11-281-17/+0
* Reuse code in AR::Association#find_targetBogdan Gusiev2018-11-271-0/+17
* Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-101-1/+3
|\
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-1/+3
* | Don't expose internal methods in the associationsRyuta Kamizono2018-10-081-18/+18
* | Fix `AssociationRelation` not to set inverse instance key just like beforeRyuta Kamizono2018-10-071-0/+8
|/
* Initialization block is a part of `build_record`Ryuta Kamizono2018-06-041-0/+1
* Eager loading won't mutate owner recordRyuta Kamizono2018-05-251-10/+16
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-2/+2
* Fix marshaling of models with `has_many :through` associationsfatkodima2018-02-081-2/+2
* Avoid passing unnecessary arguments to relationDaniel Colson2018-01-241-1/+1
* Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-041-2/+2
* Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
* Don't cache `scope_for_create`Ryuta Kamizono2017-07-161-1/+1
* Fix `create_with` using both string and symbolRyuta Kamizono2017-07-161-2/+5
* 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
* Remove unused `aliased_table_name` in `Association`Ryuta Kamizono2017-06-291-8/+0
* Don't passing `klass.connection` to `AssociationScope`Ryuta Kamizono2017-06-291-1/+1
* Prevent extra `scope` construction in `find_target`Ryuta Kamizono2017-06-181-1/+1
* Merge pull request #29098 from kamipo/fix_association_with_extension_issuesMatthew Draper2017-05-301-0/+10
|\
| * Extract `default_extensions` to avoid `klass.all`Ryuta Kamizono2017-05-301-1/+1
| * Fix association with extension issuesRyuta Kamizono2017-05-281-0/+10
* | Remove unused `Association#interpolate`Ryuta Kamizono2017-05-281-8/+0
|/
* Cache target scope for collection proxyRyuta Kamizono2016-12-251-1/+1
* Merge pull request #26905 from bogdanvlviv/docsAndrew White2016-11-131-1/+1
|\
| * Add missing `+` around a some literals.bogdanvlviv2016-10-271-1/+1
* | Allow `autosave: true` to be used with inverse ofSean Griffin2016-11-011-0/+9
* | Deprecate the behavior of AR::Dirty inside of after_(create|update|save) call...Sean Griffin2016-11-011-1/+1
|/
* Extract duplicated `create` and `create!` definition for associationRyuta Kamizono2016-09-031-0/+8
* modernizes hash syntax in activerecordXavier Noria2016-08-061-1/+1
* applies new string literal convention in activerecord/libXavier Noria2016-08-061-1/+1
* Give more context from `AssociationMismatchError`Sean Griffin2016-05-121-1/+2
* start hiding the `scope_chain` data structureAaron Patterson2016-03-041-1/+1
* Except keys of `build_record`'s argument from `create_scope` in initialize_at...yui-knk2015-11-161-3/+6
* Skip statement cache on through association readerRafael Mendonça França2015-08-121-0/+8
* thrown ActiveRecord::AssociationTypeMismatch when assigning a wrong value for...Diego Carrion2015-06-221-3/+6
* Doc fix about association hierarchykeepcosmos2015-03-151-2/+2
* Inject the `PredicateBuilder` into the `Relation` instanceSean Griffin2014-12-261-1/+1
* reuse available collection? check instead of macroeileencodes2014-06-091-1/+1
* add has_one? method and reuse instead of checking macroeileencodes2014-06-091-1/+1
* Merge pull request #15210 from arthurnn/fix_hbtm_reflectionArthur Neves2014-05-241-1/+1
* Prevent foreign_key_for? from type casting all attributesWojtek Kruszewski2014-02-211-1/+1
* make a singleton for AssociationScopeAaron Patterson2014-02-141-1/+1
* pass the association and connection to the scope methodAaron Patterson2014-02-141-1/+1
* remove the nil check from set_inverse_instanceAaron Patterson2013-12-121-1/+2