diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-15 14:24:11 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-01-15 14:24:11 -0800 |
commit | f3e379f0c97149bb29a63dc9db8a2836addcd957 (patch) | |
tree | 70dbb789f50942d722f98ce98df5db89a7437309 /activerecord/lib/active_record/relation | |
parent | 7fff71b357150519002e1f92dbcb11fc75f56a9b (diff) | |
download | rails-f3e379f0c97149bb29a63dc9db8a2836addcd957.tar.gz rails-f3e379f0c97149bb29a63dc9db8a2836addcd957.tar.bz2 rails-f3e379f0c97149bb29a63dc9db8a2836addcd957.zip |
use a params hash so we know what bind parameters are used
Diffstat (limited to 'activerecord/lib/active_record/relation')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |