You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you fail to give a direction for an order you get this really unhelpful error message:
"field_one".__sort_option__
NoMethodError:
undefined method `to_direction' for nil:NilClass
What would be the best approach here? Converting an app from another ORM that defaults to ascending order if not specified and was thinking of doing that.
If there is a preferred direction for this I'll put together a pull request with a fix.
The text was updated successfully, but these errors were encountered:
Agreed. Really this should be mentioned in one of[1] the Mongoid docs[2]. I had to do some DuckDuckGoing to even figure out it was an option, and issue searching to figure out the solution.
If you fail to give a direction for an order you get this really unhelpful error message:
What would be the best approach here? Converting an app from another ORM that defaults to ascending order if not specified and was thinking of doing that.
If there is a preferred direction for this I'll put together a pull request with a fix.
The text was updated successfully, but these errors were encountered: