-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Collection link for STI model #2813
Copy link
Copy link
Open
Labels
fieldsnew fields, displaying and editing datanew fields, displaying and editing datamodelsmodels, associations and fetching the underlying datamodels, associations and fetching the underlying data
Metadata
Metadata
Assignees
Labels
fieldsnew fields, displaying and editing datanew fields, displaying and editing datamodelsmodels, associations and fetching the underlying datamodels, associations and fetching the underlying data
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).