diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-28 09:35:43 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-11-28 09:35:43 -0800 |
commit | ba0b3eee144000b48ec609b75c18d1cdf07a10f3 (patch) | |
tree | 9dc77c8e0abd21f03fa5b6059d2c7a5e5c44a084 /activerecord/lib | |
parent | a0c61c81d7b118b61eb7f385af0d3ba71f95ba93 (diff) | |
parent | cba5a3a367f0f9d3be042c0782716fdfd4930f1c (diff) | |
download | rails-ba0b3eee144000b48ec609b75c18d1cdf07a10f3.tar.gz rails-ba0b3eee144000b48ec609b75c18d1cdf07a10f3.tar.bz2 rails-ba0b3eee144000b48ec609b75c18d1cdf07a10f3.zip |
Merge pull request #3768 from janv/master
Test and fix for Issue 3450
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/autosave_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index 056170d82a..d709a77fb0 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -264,7 +264,7 @@ module ActiveRecord # turned on for the association. def validate_single_association(reflection) association = association_instance_get(reflection.name) - record = association && association.target + record = association && association.reader association_valid?(reflection, record) if record end |