- What were you trying to do?
Hello, I have a dashboard that have multiple items in a collection. In the dashboard, I have this relation:
messages: Field::HasMany.with_options(sort_by: :created_at, direction: :desc)
My message class is an STI and only use child as real type. For example:
class Request < Message
Currently, in this display, each line isn't clickable because the class is Request instead of Message.
How can I make the STI subclass use the main class for all things related to Administrate (route, dashboard, etc).
- What versions are you running?
- Rails: 7.2.2.1
- administrate: 0.20.1
Hello, I have a dashboard that have multiple items in a collection. In the dashboard, I have this relation:
messages: Field::HasMany.with_options(sort_by: :created_at, direction: :desc)My message class is an STI and only use child as real type. For example:
class Request < MessageCurrently, in this display, each line isn't clickable because the class is Request instead of Message.
How can I make the STI subclass use the main class for all things related to Administrate (route, dashboard, etc).