aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-01-07 18:27:33 +0000
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-11 13:45:06 -0800
commit665880c0809b563d3afaeadd073f5d0b6289a42e (patch)
tree8b6cd9f4d656864733ccad1cb7e53fb5ed21e260 /activerecord/lib/active_record
parent15adcc3927b96328f3375aedd7d829f5e582854c (diff)
downloadrails-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 '='
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations.rb1
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|