From f3e379f0c97149bb29a63dc9db8a2836addcd957 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 15 Jan 2014 14:24:11 -0800 Subject: use a params hash so we know what bind parameters are used --- activerecord/lib/active_record/relation/query_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/relation') diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index ffcdcd1169..226f1b8176 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -948,7 +948,7 @@ module ActiveRecord def create_binds(opts, idx) bindable, non_binds = opts.partition do |column, value| case value - when String, Integer + when String, Integer, ActiveRecord::StatementCache::Substitute @klass.columns_hash.include? column.to_s else false -- cgit v1.2.3