diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-14 11:51:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-14 11:51:04 -0800 |
commit | 2f8853004a37950b5076e9a3e15e8b5aeb7e558a (patch) | |
tree | 2bb47d4d03a5e28011ae47bbcead1d4b147a35ff /activerecord/test/cases | |
parent | 6392cd91b05814d5f7735d458c51cd11c6c4367d (diff) | |
download | rails-2f8853004a37950b5076e9a3e15e8b5aeb7e558a.tar.gz rails-2f8853004a37950b5076e9a3e15e8b5aeb7e558a.tar.bz2 rails-2f8853004a37950b5076e9a3e15e8b5aeb7e558a.zip |
`where` creates binds, so do not create them manually
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index a0896f7f8d..6fa749a084 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -1547,8 +1547,7 @@ class RelationTest < ActiveRecord::TestCase column = Post.columns_hash['id'] binds = [[column, 20]] - right = Post.where(id: Arel::Nodes::BindParam.new('?')) - right.bind_values += binds + right = Post.where(id: 20) left = Post.where(id: 10) merged = left.merge(right) |