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

Zeitwerk conditionally ignore payments_controller.rb #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mateus-po
Copy link
Collaborator

When loading spree_stripe without loading spree_frontend (which is optional and doesn't have to be included) there is Zeitwerk error. The error stems from the fact that the file spree_stripe/app/controllers/spree/spree_stripe/payments_controller.rb doesn't define a PaymentsController class when spree_frontend isn't loaded. The solution is to conditionally ignore said file while running autoloader.

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