aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-14 15:34:07 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-14 15:34:07 -0200
commitbc556a21e2d5722f42dfac810c04d453076e09fb (patch)
tree28ba984c27aababf006125a6e66d7460043f34a0 /activerecord/lib/active_record
parent93c9f4a942c622ecbe8d46ab4838bd072aef9fc0 (diff)
downloadrails-bc556a21e2d5722f42dfac810c04d453076e09fb.tar.gz
rails-bc556a21e2d5722f42dfac810c04d453076e09fb.tar.bz2
rails-bc556a21e2d5722f42dfac810c04d453076e09fb.zip
Remove unused var
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/associations/has_many_through_association.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb
index 0a5858f36e..79c229d9c4 100644
--- a/activerecord/lib/active_record/associations/has_many_through_association.rb
+++ b/activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -68,7 +68,7 @@ module ActiveRecord
end
through_association = @owner.send(@reflection.through_reflection.name)
- through_record = through_association.create!(construct_join_attributes(record))
+ through_association.create!(construct_join_attributes(record))
end
# TODO - add dependent option support