-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Merge RailsAdmin config #1780
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am developing a gem that installs RailsAdmin into a main application. The gem defines a document type (models) with basic attributes and RailsAdmin configuration. Other (yet to be developed) gems may define additional document types, such as invoice, order, ... - that require different attributes and, consequently, different RailsAdmin configuration.
The basic document type comes as a module, additional document types include the basic document type. If calling
rails_admin do ... end
multiple times, both in the module and the actual document class, configuration options will be overwritten. How can I merge different RailsAdmin configurations?I need to be able to to this, for example:
After that,
Invoice
should haveDocument
defined as its parent in RailsAdmin.Can RailsAdmin do this? If not, how would I go about implementing this in RailsAdmin in a smart way and without reinventing the wheel?
Thanks...
PS This has been asked before, but never answered.
The text was updated successfully, but these errors were encountered: