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

Delegate model generator description to orm hooked generator #45315

Merged
merged 1 commit into from Jun 13, 2022

Conversation

gmcgibbon
Copy link
Member

@gmcgibbon gmcgibbon commented Jun 10, 2022

Use orm hooked generator description for model generator help. This should let an ORM configured generator let users know how to use it. The current description only really describes the behaviour of the Active Record generator, so it should own its own description.

This is a potentially breaking change for those with overridden generators, so I would be happy to keep the USAGE in railties and conditionally delegate to the orm generator if it has USAGE instead.

@gmcgibbon gmcgibbon force-pushed the hook_generator_description branch 3 times, most recently from 88092e3 to 82144bd Compare June 10, 2022 17:42
@gmcgibbon
Copy link
Member Author

I think this will break the resource generator description since it is a subclass. I'll sort that out before merging.

Use orm hooked generator description for model generator help.
@gmcgibbon gmcgibbon merged commit a39cd44 into rails:main Jun 13, 2022
@gmcgibbon gmcgibbon deleted the hook_generator_description branch June 13, 2022 16:49
gmcgibbon added a commit to gmcgibbon/rails that referenced this pull request Jul 25, 2022
Removes "#{name}_generator" method for removed hooks introduced in rails#45315
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant