Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display STI subclasses #416

Open
saturnflyer opened this issue Oct 9, 2024 · 0 comments
Open

Display STI subclasses #416

saturnflyer opened this issue Oct 9, 2024 · 0 comments

Comments

@saturnflyer
Copy link

I'm interested in displaying the subclasses defined for my STI models.
For example I'd like to show a relationship that User -> Event but if the Event class is STI I want to display those types

For example maybe my Event entity display is slightly different and lists the descendant classes with something like

  subgraph events {
    cluster=true;

    "Birthday";
    "Holiday";
  }

I haven't identified the dot syntax that I'd want yet but I'm also not sure how to work on creating a PR for this.
My impression is that I might need a special Attribute object that might apply to :type columns from ActiveRecord models.

I would love some direction on how to provide that as an option in this gem or (if that's not desirable) how to inject that feature so that I could make that happen for my needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant