提交 50c5005b 编写于 作者: D Dmytrii Nagirniak

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

This will remove a lot of controversy.
As an example, see https://github.com/ernie/squeel/issues/67#issuecomment-5270896
上级 023cfd3a
......@@ -388,6 +388,8 @@ The field name can also be a string:
Client.where('locked' => true)
</ruby>
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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册