aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/belongs_to_association.rb
Commit message (Expand)AuthorAgeFilesLines
...
* 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
* Make counter cache work when replacing an association (closes #3245). Thanks ...Jamis Buck2006-03-041-0/+11
* Added preliminary support for join models [DHH] Added preliminary support for...David Heinemeier Hansson2005-12-031-42/+16
* Work-in progress for providing better join model support and polymorphic asso...David Heinemeier Hansson2005-12-021-4/+0
* Added :include as an option for association declarations [DHH]David Heinemeier Hansson2005-11-061-2/+6
* Fix errors caused by assigning a has-one or belongs-to property to itselfJamis Buck2005-10-131-1/+1
* Fixed that the create_x method from belongs_to wouldn't save the association ...David Heinemeier Hansson2005-09-201-2/+2
* Fixed saving a record with two unsaved belongs_to associations pointing to th...Jamis Buck2005-09-201-0/+5
* Added support for calling constrained class methods on has_many and has_and_b...David Heinemeier Hansson2005-07-221-2/+11
* Moved build_association and create_association for has_one and belongs_to out...David Heinemeier Hansson2005-04-121-1/+0
* Fixed that the belongs_to and has_one proxy would fail a test like 'if projec...David Heinemeier Hansson2005-01-181-17/+1
* belongs_to association should always honor a present foreign key and conditio...David Heinemeier Hansson2005-01-171-1/+5
* Added support for associating unsaved objects #402 [Tim Bates]David Heinemeier Hansson2005-01-151-0/+70