aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-10 15:29:38 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-12-10 15:29:38 -0300
commitc720ff75d8c3512feed4f80635ebc3e0ed7abcc6 (patch)
tree02bf282f6081b4de94c6476b1c040484854ceff3 /activerecord
parent86e1f45c93114fe44e88cb4c6aa61fbe4836bf72 (diff)
downloadrails-c720ff75d8c3512feed4f80635ebc3e0ed7abcc6.tar.gz
rails-c720ff75d8c3512feed4f80635ebc3e0ed7abcc6.tar.bz2
rails-c720ff75d8c3512feed4f80635ebc3e0ed7abcc6.zip
Remove warning of unused variable
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/calculations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb
index ab573d8cc8..f931b39998 100644
--- a/activerecord/test/cases/calculations_test.rb
+++ b/activerecord/test/cases/calculations_test.rb
@@ -500,7 +500,7 @@ class CalculationsTest < ActiveRecord::TestCase
end
def test_pluck_not_auto_table_name_prefix_if_column_joined
- c = Company.create!(:name => "test", :contracts => [Contract.new(:developer_id => 7)])
+ Company.create!(:name => "test", :contracts => [Contract.new(:developer_id => 7)])
assert_equal [7], Company.joins(:contracts).pluck(:developer_id).map(&:to_i)
end
end