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

Fix Rails warning about auto-loading Spree::ReviewsConfiguration again #108

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

Conversation

marcrohloff
Copy link
Contributor

Note: This is a re-submission of PR #98 which appears to have been reverted.

When starting a Rails app using Solidus Reviews the following is logged

Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload Spree::ReviewsConfiguration, for example,
the expected changes won't be reflected in that stale Class object.

This change uses the same styles as solidus_frontend and solidus_backend to load the configuration class.

… to have been reverted.

When starting a Rails app using Solidus Reviews the following is logged
```
Reloading does not reboot the application, and therefore code executed during
initialization does not run again. So, if you reload Spree::ReviewsConfiguration, for example,
the expected changes won't be reflected in that stale Class object.
```

This change uses the same styles as solidus_frontend and solidus_backend to load the configuration class.
@pelargir
Copy link
Contributor

pelargir commented Feb 2, 2022

We're getting the same warning. +1 for merging this change.

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