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
ignore_unknown_conditions seems not to apply to sort conditions -- if I try to sort on an by using ransack's sort_link to generate sort links---
If I forget to list the attribute I'm sorting on in ransackable_attributes or ransortable_attributes --
I do not get an exception raised even with c.ignore_unknown_conditions = false.
Instead, the sort link just does nothing.
It would be nice to get an exception instead, per c.ignore_unknown_conditions?
Or, hypothetically ransack could optionally even raise at the generation of sort_link, if sorting on something that is not going to work because it's not allow-listed. But I can see how that might get tricky.
The text was updated successfully, but these errors were encountered:
ignore_unknown_conditions
seems not to apply to sort conditions -- if I try to sort on an by using ransack'ssort_link
to generate sort links---If I forget to list the attribute I'm sorting on in
ransackable_attributes
orransortable_attributes
--I do not get an exception raised even with
c.ignore_unknown_conditions = false
.Instead, the sort link just does nothing.
It would be nice to get an exception instead, per
c.ignore_unknown_conditions
?Or, hypothetically ransack could optionally even raise at the generation of
sort_link
, if sorting on something that is not going to work because it's not allow-listed. But I can see how that might get tricky.The text was updated successfully, but these errors were encountered: