aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/belongs_to_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Adding a bang to method name of raise_on_type_mismatch.wangjohn2013-03-211-1/+1
* BELONGS TO ASSOCIATION | Typo fixlibin2013-02-251-1/+1
* improved different_target conditionsAngelo Capilleri2013-01-081-2/+5
* move dependency logic out of generated methodsJon Leighton2012-08-101-0/+5
* @stale_state should be nil when a model isn't saved.kennyj2012-04-131-1/+1
* Some refactor for association.kennyj2012-04-121-0/+5
* Fix belongs_to polymorphic with custom primary key on target.Jon Leighton2011-09-261-1/+5
* Don't find belongs_to target when the foreign_key is NULL. Fixes #2828Georg Friedrich2011-09-051-0/+4
* Fix exception if old and new targets are both nil. Fixes #1471.Jon Leighton2011-07-121-1/+1
* Rename target_klass to klassJon Leighton2011-02-211-1/+1
* Delegate Association#options to the reflection, and replace 'reflection.optio...Jon Leighton2011-02-211-1/+1
* Singular associations no longer use a proxy, so no need to check for the prox...Jon Leighton2011-02-211-1/+1
* Associations - where possible, call attributes methods rather than directly a...Jon Leighton2011-02-211-10/+10
* Let's be less blasé about method visibility on association proxiesJon Leighton2011-01-301-0/+1
* find_target can also go into SingularAssociationJon Leighton2011-01-161-4/+0
* Abstract a bit more into SingularAssociationJon Leighton2011-01-161-2/+1
* Use self.target= rather than @target= as the former automatically sets loadedJon Leighton2011-01-161-3/+1
* Abstract common code from BelongsToAssociation and HasOneAssociation into Sin...Jon Leighton2011-01-161-19/+1
* belongs_to records should be initialized within the association scopeJon Leighton2011-01-161-2/+8
* Add create_association! for belongs_toJon Leighton2011-01-161-0/+4
* reduce funcalls by using falsey objectsAaron Patterson2011-01-141-2/+2
* Construct an actual ActiveRecord::Relation object for the association scope, ...Jon Leighton2011-01-071-17/+0
* When preloading a belongs_to, the target should still be set (to nil) if ther...Jon Leighton2011-01-031-3/+1
* Create the association scope directly rather than going through with_scopeJon Leighton2011-01-031-1/+1
* Rename AssociationProxy#foreign_key_present to foreign_key_present?Jon Leighton2011-01-031-3/+3
* Allow assignment on has_one :through where the owner is a new record [#5137 s...Jon Leighton2011-01-031-11/+4
* Rename AssociationReflection#primary_key_name to foreign_key, since the optio...Jon Leighton2010-12-311-7/+7
* Support for :counter_cache on polymorphic belongs_toJon Leighton2010-12-311-1/+1
* Refactor BelongsToAssociation to allow BelongsToPolymorphicAssociation to inh...Jon Leighton2010-12-311-49/+55
* Refactor we_can_set_the_inverse_on_this? to use a less bizarre name amongst o...Jon Leighton2010-12-261-4/+5
* If a has_many goes :through a belongs_to, and the foreign key of the belongs_...Jon Leighton2010-12-231-1/+4
* Improved strategy for updating a belongs_to association when the foreign key ...Jon Leighton2010-12-231-0/+8
* removing space errorAaron Patterson2010-11-221-1/+1
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-3/+3
* Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc...Jon Leighton2010-10-301-9/+11
* dry up the hash dup and avoid sending nil valuesAaron Patterson2010-08-111-4/+8
* Don't increment and then decrement the same counter when re-assigning a belon...Tarmo Tänav2010-07-291-1/+1
* Adds title to activerecord/lib/active_record/associations/*Rizwan Reza2010-06-161-0/+1
* Remove whitespace.Emilio Tagua2009-08-191-2/+2
* Add primary_key option to belongs_to associationSzymon Nowak2009-07-151-4/+22
* Providing support for :inverse_of as an option to associations.Murray Steele2009-05-041-1/+11
* Add special AssociationReflection methods for creating association objects, a...Hongli Lai (Phusion)2008-09-091-2/+2
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
* Added :select option to has_one and belongs_to, remove unused :order option o...josevalim2008-05-241-2/+3
* Introduce the :readonly option to all associations. Records from the associat...Jeremy Kemper2008-02-131-1/+2
* Make sure that belongs_to counter decrements when assigning nil Closes #10804...Michael Koziarski2008-01-261-1/+1
* Backed out of new_record? to new? transformation as it would screw up existin...David Heinemeier Hansson2006-09-051-3/+3
* Deprecated ActiveRecord::Base.new_record? in favor of ActiveRecord::Base.new?...David Heinemeier Hansson2006-09-051-3/+3
* Use association's :conditions when eager loading. [jeremyevans0@gmail.com] cl...Rick Olson2006-03-161-1/+1
* Fix counter cache setting in belongs-to proxyJamis Buck2006-03-091-1/+1