This project is archived and is in readonly mode.
include field ignored
-
Stephanie Collett
This just got me today. Thanks for the work around.
-
Frederick Cheung
The order option should be a string (you get away with passing a one element array because of Array's default to_s implementation. If you use a string then rails should notice that you are referencing the users table in your order option
-
Marcelo Barbudas
Indeed making it a string fixes the problem.
After using conditions => [] for some time it feels naturally to use arrays for options in find methods.
-
Tarmo Tänav
- State changed from new to invalid
- Tag changed from activerecord to activerecord
The docs do say that :order should be an sql fragment. This working with anything else is just a coincidence, though indeed that could be a surprise, but there isn't much that could be done here.