Hi, A quick question: in the query `Company.where(:status => :active)`, is it OK to use the symbol (:active) as a value in the query?
It definitely works with no issues at all. But there's a lot of controversy around that in the squeel: https://github.com/ernie/squeel/issues/67#issuecomment-5237083 Ernie explains that the use of Symbols in ActiveRecord wasn't assumed and is incorrect. Additionally, he says "In AR documentation, symbols are never shown as a value in examples.". I personally feel a bit lost in this regard and it would be awesome if somebody could shade some light on this. Cheers, Dmytrii. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/N01WV_Qx28UJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
