aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-06-16 06:44:48 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-06-16 06:44:48 +0000
commit253a2bbefb707fa5f16c61c8db978790cac777d1 (patch)
tree476f04767e3cc0b509900128c11143257793f6ea /activerecord/lib/active_record/base.rb
parenta895be0259eb2e47fab8de3c8d30c700a304d441 (diff)
downloadrails-253a2bbefb707fa5f16c61c8db978790cac777d1.tar.gz
rails-253a2bbefb707fa5f16c61c8db978790cac777d1.tar.bz2
rails-253a2bbefb707fa5f16c61c8db978790cac777d1.zip
Allow any Enumerable, not just Array, to work as bind variables #1344 [bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1442 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 9782b6cd04..08f749d3c8 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -896,7 +896,7 @@ module ActiveRecord #:nodoc:
def quote_bound_value(value)
case value
- when Array
+ when Enumerable
value.map { |v| connection.quote(v) }.join(',')
else
connection.quote(value)