aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/through_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Initialization block is a part of `build_record`Ryuta Kamizono2018-06-041-1/+1
* Fix building has_one through recordRyuta Kamizono2018-01-231-0/+4
* Fix `stale_state` for nested `has_many :through` associationsRyuta Kamizono2018-01-101-2/+13
* Merge pull request #16314 from zoltankiss/allow-nested-has-many-associations-...Ryuta Kamizono2018-01-101-1/+1
|\
| * Fix nested `has many :through` associations on unpersisted instancesZoltan Kiss2015-03-261-1/+1
* | Fix deleting through records when using has_many through with `source_type`Ryuta Kamizono2018-01-081-8/+6
* | Fix broken doc for Active Record [ci skip]Yoshiyuki Hirano2017-08-251-1/+1
* | Through scope should not be affected by scopingRyuta Kamizono2017-08-151-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
* | No need `:doc:` for `:nodoc:` classes [ci skip]Ryuta Kamizono2016-12-251-1/+1
* | Privatize unneededly protected methods in Active RecordAkira Matsuda2016-12-241-4/+2
* | applies remaining conventions across the projectXavier Noria2016-08-061-1/+0
* | modernizes hash syntax in activerecordXavier Noria2016-08-061-1/+1
* | Fix misleading errors for has_one through relationsMehmet Emin İNAÇ2015-07-221-2/+10
* | Correct through associations using scopesSean Griffin2015-06-301-6/+0
|/
* Doc fix [ci skip]Sushruth Sivaramakrishnan2015-03-071-1/+1
* Don't rely on relation mutability when building through associationsSean Griffin2015-01-241-1/+1
* Merge pull request #15309 from iantropov/issue_12698_build_throughRafael Mendonça França2015-01-021-0/+11
|\
| * Add setting of FK for throgh associations while buildingIvan Antropov2014-05-251-0/+11
* | Only merge scopes with zero arity in has_many throughAgis-2014-08-201-1/+5
* | Don't delegate Reflection#chain to ThroughAssociationeileencodes2014-08-041-2/+2
* | Use available method rather than macro name checkingCarlos Antonio da Silva2014-07-311-1/+1
* | Through associations should set both parent ids on join modelsSean Griffin2014-06-131-6/+10
* | reuse available belongs_to? methodeileencodes2014-06-031-3/+2
|/
* Merge pull request #14573 from habermann24/has_many_through_fixRafael Mendonça França2014-04-221-2/+4
|\
| * Minor improvement: Use the merge method on the relation instead of instance_e...Jan Habermann2014-04-031-1/+1
| * Simplify the code in target_scopeJan Habermann2014-04-031-5/+2
| * Properly handle scoping with has_many :through. Fixes #14537.Jan Habermann2014-04-031-2/+7
|/
* use drop and avoid a range objectAaron Patterson2013-08-011-1/+1
* Simplify/fix implementation of default scopesJon Leighton2013-06-281-1/+1
* optimize some code around mergeVipul A M2013-04-031-1/+1
* Migration of docs to 1.9 hash syntaxAvnerCohen2012-10-231-1/+1
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-1/+1
* @stale_state should be nil when a model isn't saved.kennyj2012-04-131-1/+1
* Not need to pass join attributes to association buildRafael Mendonça França2012-03-071-3/+7
* Fix #3247.Jon Leighton2011-11-031-1/+1
* Don't include any of includes, preload, joins, eager_load in the through asso...Jon Leighton2011-09-071-1/+1
* Nested through associations: preloads from the default scope of a through mod...Jon Leighton2011-09-061-1/+1
* Ignore :includes on through associationsAndrew White2011-05-241-1/+1
* Don't use select() values from the join model of a through association. Fixes...Jon Leighton2011-05-111-3/+4
* Don't use mass-assignment protection when applying the scoped.scope_for_creat...Jon Leighton2011-05-101-1/+3
* Resolve some TODO comments which I decided did not need anything doneJon Leighton2011-03-121-7/+4
* Rename Reflection#through_reflection_chain and #through_options to Reflection...Jon Leighton2011-03-101-3/+2
* Move the code which builds a scope for through associations into a generic As...Jon Leighton2011-03-101-128/+0
* Fix test_has_many_association_through_a_has_many_association_with_nonstandard...Jon Leighton2011-03-071-1/+1
* Refactor ThroughAssociation#join_to to be much smaller, and independent of co...Jon Leighton2011-03-061-84/+28
* Refactor ThroughAssociation#tables to just be a flat array of tables in the o...Jon Leighton2011-03-061-75/+70
* Push source_type and polymorphic conditions out of ThroughAssociation and Joi...Jon Leighton2011-03-051-17/+0