Permalink
Browse files

`where` creates binds, so do not create them manually

  • Loading branch information...
1 parent 6392cd9 commit 2f8853004a37950b5076e9a3e15e8b5aeb7e558a @tenderlove tenderlove committed Jan 14, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/test/cases/relations_test.rb
@@ -1547,8 +1547,7 @@ def test_merging_keeps_lhs_bind_parameters
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)

0 comments on commit 2f88530

Please sign in to comment.