Browse files

Make it explicit that Symbol-s are not officially supported.

This will remove a lot of controversy.
As an example, see activerecord-hackery/squeel#67 (comment)
  • Loading branch information...
1 parent 023cfd3 commit 50c5005bafe7e43f81a141cd2c512379aec74325 @dnagir dnagir committed Apr 23, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 guides/source/active_record_querying.textile
2 guides/source/active_record_querying.textile
@@ -388,6 +388,8 @@ The field name can also be a string:
Client.where('locked' => true)
+NOTE: A `Symbol` value is not supported and should not be used. Always use a `String` instead: `Client.where(:status => 'active')`, but NOT `Client.where(:status => :active)`.
h5(#hash-range_conditions). Range Conditions
The good thing about this is that we can pass in a range for our fields without it generating a large query as shown in the preamble of this section.

0 comments on commit 50c5005

Please sign in to comment.