aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/has_one_association.rb
Commit message (Expand)AuthorAgeFilesLines
* Do not create useless database transaction when building `has_one` association.Bogdan Gusiev2012-11-101-1/+9
* Fix grammarJo Liss2012-08-301-3/+3
* move dependency logic out of generated methodsJon Leighton2012-08-101-0/+18
* Fix #7191. Remove unnecessary transaction when assigning has_one associations.kennyj2012-08-081-13/+15
* removes usage of Object#in? from the code base (the method remains defined by...Xavier Noria2012-08-061-9/+12
* load active_support/core_ext/object/inclusion in active_support/railsXavier Noria2012-08-021-1/+0
* Deprecate update_column in favor of update_columns.Rafael Mendonça França2012-07-241-1/+1
* Remove update_attribute.Steve Klabnik2012-06-141-1/+1
* Only call set_owner_attributes for has_one association if target exists.Dieter Komendera2011-07-041-1/+1
* When you add a record to a polymorphic has_one, you should be able to access ...Jon Leighton2011-06-081-1/+1
* Don't remove the target if it has already been destroyedAndrew White2011-05-111-1/+1
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the sugg...David Heinemeier Hansson2011-04-121-1/+1
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+3
* Move the code which builds a scope for through associations into a generic As...Jon Leighton2011-03-101-6/+0
* Use proper objects to do the work to build the associations (adding methods, ...Jon Leighton2011-02-211-4/+15
* Delegate Association#options to the reflection, and replace 'reflection.optio...Jon Leighton2011-02-211-2/+2
* 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