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

Check before overriding dirs config in Railtie initializer #13

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

patvice
Copy link
Contributor

@patvice patvice commented Oct 26, 2024

This PR addresses an issue we found when trying to add this gem to our rails application.

Our monolithic has a componentization setup, so we're using a custom director for our resources to live.

When you try and configure directors in an initializer they're overridden by the rails tie, then Ruby will crash as initializer "typelizer.generate" raise an expectation as there are no resources found to generate in the override configuration.

Just checking the config to see if it's already defined solves the problem.

@skryukov skryukov merged commit c1a24e9 into skryukov:main Oct 28, 2024
5 checks passed
@skryukov
Copy link
Owner

Thanks @patvice 🙌

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.

2 participants