Skip to content

Display STI subclasses #416

@saturnflyer

Description

@saturnflyer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions