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

added configurarations options #118

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

francescob
Copy link

@francescob francescob commented Nov 7, 2024

Added a configuration key called models_list, in case someone needs to draw a chart for a subset of the models in the rails application.

example configuration:

models_list: User.descendants

default is still ::ActiveRecord::Base.descendants.sort_by(&:name)

the method could be anything that will return an array of active record models or even a string containing an array of models:

"[User, Role]"

Also added

hide_columns: true

to hide columns by default for readability purpose

not settings the option or setting it to false will show columns like it is in the current setting

@francescob francescob changed the title added configuration to set a method for the list of models to draw on the diagram added configurarations options Nov 7, 2024
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

Successfully merging this pull request may close these issues.

1 participant