As mentioned in my comment on #1667, if a string (or ultimately anything but a symbol representing a column) is specified for sort_by, RA should not automatically prefix a table name to the column or apply a sort order, but should append it to the query as-is.
This would allow for these examples, which currently fail with a SQL error:
rails_admin do
list do
sort_by "lower(name)"
sort_reverse false
end
end
or
rails_admin do
list do
sort_by "family.name ASC, name DESC"
sort_reverse false
end
As mentioned in my comment on #1667, if a string (or ultimately anything but a symbol representing a column) is specified for
sort_by
, RA should not automatically prefix a table name to the column or apply a sort order, but should append it to the query as-is.This would allow for these examples, which currently fail with a SQL error:
or