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
Let's say we have User class, which belongs to an Organization class.
In the sorted 1.0 it was possible to pass 'organizations.name' to sorted method on User.references(:organization).includes(:organization), and have our users list sorted by an association name (quite handy in admin views, for example).
With sorted 2.0 that seems no longer the case — it tries to sort by "users"."organizations.name", and that of course fails.
I think this is either an unintended regression in sorted 2.0, or plainly a missing feature.
The text was updated successfully, but these errors were encountered:
@kirushik are you using sorted-activerecord or sorted? Could you please close this ticket and open it on https://github.com/mynameisrufus/sorted-activerecord with the code you trying to run, even better if you could provide me with a failing test, that would be very helpful 😃
Let's say we have
User
class, which belongs to anOrganization
class.In the sorted 1.0 it was possible to pass
'organizations.name'
tosorted
method onUser.references(:organization).includes(:organization)
, and have our users list sorted by an association name (quite handy in admin views, for example).With sorted 2.0 that seems no longer the case — it tries to sort by
"users"."organizations.name"
, and that of course fails.I think this is either an unintended regression in sorted 2.0, or plainly a missing feature.
The text was updated successfully, but these errors were encountered: