aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/belongs_to_polymorphic_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Don't update counter cache unless the record is actually savedRyuta Kamizono2018-09-191-4/+0
* Fix `belongs_to_counter_cache_after_update` to respect polymorphic type changeRyuta Kamizono2018-05-271-1/+4
* Extract all `base_class.name` as `polymorphic_name`Ryuta Kamizono2018-03-041-1/+1
* Bugfix foreign key replacement in inverse associationBogdan Gusiev2017-12-271-6/+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
* Fix nil assignment to polymorphic belongs_toJeremy Kemper2013-12-181-0/+5
* remove nil checkAaron Patterson2013-12-121-1/+1
* Adding a bang to method name of raise_on_type_mismatch.wangjohn2013-03-211-1/+1
* @stale_state should be nil when a model isn't saved.kennyj2012-04-131-1/+2
* Fix private methods which are delegated to. This previously worked because Mo...Jon Leighton2011-08-151-5/+5
* Handle polymorphic_type NOT NULL-able columns as well.thedarkone2011-05-211-1/+1
* Rename target_klass to klassJon Leighton2011-02-211-2/+2
* Associations - where possible, call attributes methods rather than directly a...Jon Leighton2011-02-211-4/+4
* Allow assignment on has_one :through where the owner is a new record [#5137 s...Jon Leighton2011-01-031-13/+4
* Have a proper AssociationReflection#foreign_type method rather than using opt...Jon Leighton2011-01-031-3/+3
* Rename AssociationReflection#primary_key_name to foreign_key, since the optio...Jon Leighton2010-12-311-1/+1
* Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inh...Jon Leighton2010-12-311-51/+13
* Refactor we_can_set_the_inverse_on_this? to use a less bizarre name amongst o...Jon Leighton2010-12-261-17/+7
* If a has_many goes :through a belongs_to, and the foreign key of the belongs_...Jon Leighton2010-12-231-2/+6
* Improved strategy for updating a belongs_to association when the foreign key ...Jon Leighton2010-12-231-0/+9
* Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc...Jon Leighton2010-10-301-11/+11
* no need of nil checkNeeraj Singh2010-09-291-1/+1
* Adds title to activerecord/lib/active_record/associations/*Rizwan Reza2010-06-161-0/+1
* Provide a slightly more robust we_can_set_the_inverse_on_this? method for pol...Murray Steele2009-12-281-2/+7
* Add inverse polymorphic association support. [#3520 state:resolved]George Ogata2009-12-281-10/+29
* Add primary_key option to belongs_to associationSzymon Nowak2009-07-151-1/+5
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
* belongs_to polymorphic association assignments update the foreign_id and fore...Tim Harper2008-05-311-4/+2
* Added :select option to has_one and belongs_to, remove unused :order option o...josevalim2008-05-241-2/+3
* Backed out of new_record? to new? transformation as it would screw up existin...David Heinemeier Hansson2006-09-051-1/+1
* Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::Base.new?...David Heinemeier Hansson2006-09-051-1/+1
* Use association's :conditions when eager loading. [jeremyevans0@gmail.com] cl...Rick Olson2006-03-161-1/+1
* Added Base.abstract_class? that marks which classes are not part of the Activ...Rick Olson2006-03-161-1/+1
* Added preliminary support for join models [DHH] Added preliminary support for...David Heinemeier Hansson2005-12-031-41/+21
* Work-in progress for providing better join model support and polymorphic asso...David Heinemeier Hansson2005-12-021-0/+70