aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_one_association.rb
Commit message (Expand)AuthorAgeFilesLines
...
* 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-13/+13
* Let's be less blasé about method visibility on association proxiesJon Leighton2011-01-301-1/+4
* 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-2/+1
* Abstract common code from BelongsToAssociation and HasOneAssociation into Sin...Jon Leighton2011-01-161-18/+5
* Support for create_association! for has_one associationsJon Leighton2011-01-111-1/+4
* When assigning a has_one, if anything fails, the assignment should be rolled ...Jon Leighton2011-01-111-19/+23
* When assigning a has_one, if the new record fails to save, raise an errorJon Leighton2011-01-111-3/+3
* When assigning a has_one, if the existing record fails to be removed from the...Jon Leighton2011-01-111-5/+11
* has_one should always remove the old record (properly), even if not saving th...Jon Leighton2011-01-111-1/+1
* Refactor HasOneAssociation#replaceJon Leighton2011-01-071-26/+22
* Don't not remove double negativesJon Leighton2011-01-071-4/+4
* Clean up create, create! and build in HasOneAssociationJon Leighton2011-01-071-14/+8
* merge_with_conditions is not necessary because the conditions will already be...Jon Leighton2011-01-071-9/+0
* Not really worth having the HasAssociation module for just a single methodJon Leighton2011-01-071-2/+0
* Construct an actual ActiveRecord::Relation object for the association scope, ...Jon Leighton2011-01-071-11/+3
* Remove undocumented feature from has_one where you could pass false as the se...Jon Leighton2011-01-031-20/+8
* Create the association scope directly rather than going through with_scopeJon Leighton2011-01-031-2/+2
* Use the association directly in other places tooJon Leighton2011-01-031-11/+9
* Allow assignment on has_one :through where the owner is a new record [#5137 s...Jon Leighton2011-01-031-3/+1
* Rename AssociationReflection#primary_key_name to foreign_key, since the optio...Jon Leighton2010-12-311-3/+3
* And owner_quoted_id can go tooJon Leighton2010-12-311-9/+0
* Refactor we_can_set_the_inverse_on_this? to use a less bizarre name amongst o...Jon Leighton2010-12-261-8/+3
* Add a HasAssociation module for common code for has_* associationsJon Leighton2010-12-261-0/+2
* Remove AssociationProxy#dependent? - it's badly named and only used in one placeJon Leighton2010-12-261-1/+1
* Associations: DRY up the code which is generating conditions, and make it all...Jon Leighton2010-12-261-14/+3
* using arel to compile sql statementsAaron Patterson2010-12-251-1/+2
* Partialy revert f1c13b0dd7b22b5f6289ca1a09f1d7a8c7c8584bJosé Valim2010-11-281-1/+1
* use persisted? instead of new_record? wherever possibleDavid Chelimsky2010-11-091-6/+6
* Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc...Jon Leighton2010-10-301-23/+16
* dry up the hash dup and avoid sending nil valuesAaron Patterson2010-08-111-7/+7
* Adds title to activerecord/lib/active_record/associations/*Rizwan Reza2010-06-161-0/+1
* Add more tests for the various ways we can assign objects to associations. [#...Murray Steele2009-12-281-2/+1
* Set inverse for #replace on a has_one association. [#3513 state:resolved]George Ogata2009-12-281-0/+1
* Make has_one with :conditions hash scope build or creation of the associated ...Luciano G Panaro2009-09-281-0/+9
* HasOneAssociation inherits AssociationProxy since it shares nothing with Belo...Emilio Tagua2009-06-121-5/+5
* Revert "Fixed bug with polymorphic has_one :as pointing to an STI record"Jeremy Kemper2009-05-111-1/+1
* Providing support for :inverse_of as an option to associations.Murray Steele2009-05-041-1/+10
* Fixed bug with polymorphic has_one :as pointing to an STI recordRuy Asan2009-05-011-1/+1
* Ensure replacing has_one associations respects the supplied :dependent option...Dimitri Krassovski2009-03-061-2/+11
* Ensure methods called on association proxies respect access control. [#1083 s...Pratik Naik2008-10-131-1/+1
* Add special AssociationReflection methods for creating association objects, a...Hongli Lai (Phusion)2008-09-091-4/+12
* Fix that has_one natural assignment to already associated record. [#854 state...Jakub Kuźma2008-08-211-2/+2
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
* Add support for :primary_key option to has_one as well as has_many so that a ...Brad Greenlee2008-07-061-1/+10
* Extract owner_quoted_id so it can be overridden. [#292 state:committed]Andre Arko2008-06-251-2/+2
* 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