Skip to content


Subversion checkout URL

You can clone with
Download ZIP
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...
commit 50c5005bafe7e43f81a141cd2c512379aec74325 1 parent 023cfd3
@dnagir dnagir authored
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.

1 comment on commit 50c5005


Ops, used markdown somewhy. Updated in 50f79da

Please sign in to comment.
Something went wrong with that request. Please try again.