diff options
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index fa66627ece..7d4d4083fd 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -321,13 +321,13 @@ h5. Subset conditions If you want to find records using the +IN+ expression you can pass an array to the conditions hash: <ruby> -Client.all(:include => "orders", :conditions => { :orders_count => [1,3,5] } +Client.all(:conditions => { :orders_count => [1,3,5] }) </ruby> This code will generate SQL like this: <sql> -SELECT * FROM clients WHERE (clients.orders_count IN (1,2,3)) +SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5)) </sql> h3. Find options |