From 9fcc0654c37772a3d6884c5d6f7099a39fe88f73 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 1 Jun 2006 00:43:02 +0000 Subject: Fixed that Base.find :all, :conditions => [ "id IN (?)", collection ] would fail if collection was empty [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/CHANGELOG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/CHANGELOG') diff --git a/activesupport/CHANGELOG b/activesupport/CHANGELOG index 47d1c3ba46..65eff81083 100644 --- a/activesupport/CHANGELOG +++ b/activesupport/CHANGELOG @@ -2,7 +2,7 @@ * Added Array#to_s(:db) that'll produce a comma-separated list of ids [DHH]. Example: - Purchase.find(:all, :conditions => [ "product_id IN (?)", shop.products.to_s(:db) ]) + Purchase.find(:all, :conditions => "product_id IN (#{shops.products.to_s(:db)})" * Normalize classify's argument to a String so that it plays nice with Symbols. [Marcel Molina Jr.] -- cgit v1.2.3