diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-01-07 18:27:33 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-11 13:45:06 -0800 |
commit | 665880c0809b563d3afaeadd073f5d0b6289a42e (patch) | |
tree | 8b6cd9f4d656864733ccad1cb7e53fb5ed21e260 | |
parent | 15adcc3927b96328f3375aedd7d829f5e582854c (diff) | |
download | rails-665880c0809b563d3afaeadd073f5d0b6289a42e.tar.gz rails-665880c0809b563d3afaeadd073f5d0b6289a42e.tar.bz2 rails-665880c0809b563d3afaeadd073f5d0b6289a42e.zip |
Return value is irrelevant here as the RHS of the assignment is always returned by methods ending in '='
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index d26519e7d5..8907c9c487 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1493,7 +1493,6 @@ module ActiveRecord end association.replace(record) - association.target.nil? ? nil : association end redefine_method("set_#{reflection.name}_target") do |target| |