aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorMarcel Molina <marcel@vernix.org>2006-01-05 21:40:15 +0000
committerMarcel Molina <marcel@vernix.org>2006-01-05 21:40:15 +0000
commit945dd920ab0954acdbc9b3317145b267a9638a50 (patch)
tree28b908d1c7f562e2fe6eb3feade392cad48a3df2 /activerecord/lib
parenta5708b4c1f137baba8510ca1e1985bd1f878604b (diff)
downloadrails-945dd920ab0954acdbc9b3317145b267a9638a50.tar.gz
rails-945dd920ab0954acdbc9b3317145b267a9638a50.tar.bz2
rails-945dd920ab0954acdbc9b3317145b267a9638a50.zip
Don't raise an exception when there are more keys than there are named bind variables when sanitizing conditions.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3382 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-xactiverecord/lib/active_record/base.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 94bdce5b19..7ba5beb12b 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -1140,7 +1140,6 @@ module ActiveRecord #:nodoc:
end
def replace_named_bind_variables(statement, bind_vars)
- raise_if_bind_arity_mismatch(statement, statement.scan(/:(\w+)/).uniq.size, bind_vars.size)
statement.gsub(/:(\w+)/) do
match = $1.to_sym
if bind_vars.include?(match)