We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E.g. allow for this kind of setup in an initializer file:
OrderOrder.config do |c| c.default_name_column = "title" c.default_time_column = "date" end
Now User.alphabetical will sort by title, not name, negating to need to pass "title" as an argument.
User.alphabetical
title
name
"title"
Maybe even allow setting this at the model level? E.g.
class User < ActiveRecord::Base self.alphabetical_column = "name" self.chronological_column = "date" end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
E.g. allow for this kind of setup in an initializer file:
Now
User.alphabetical
will sort bytitle
, notname
, negating to need to pass"title"
as an argument.Maybe even allow setting this at the model level? E.g.
The text was updated successfully, but these errors were encountered: