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

Fixes railtie that includes controller helper #10

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

Conversation

nzifnab
Copy link

@nzifnab nzifnab commented Apr 16, 2024

Fixes #9

Example documentation for ActiveSupport.on_load here: https://edgeapi.rubyonrails.org/classes/ActiveSupport/LazyLoadHooks.html

gives an example of using action_controller_base for the hook, instead of just action_controller.

This seems to solve my problem from the linked issue. For some reason loading based on just action_controller is trying to include the module on top of ActionController::API, which doesn't have the helper_method method, changing it as I have done in this PR makes it work as expected.

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.

undefined_method 'helper_method' for ActionController::Base
2 participants