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

Move Rails engine hooks into after_initialize #28

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

Conversation

sco11morgan
Copy link

What

Move Rails engine hooks into after_initialize

Why

After adding action_markdown to a Rails 7.1 application that was already using sorcery the application would raise an error at startup.

active_support/inflector/methods.rb:290:in `const_get': uninitialized constant ActionMarkdown::TagHelper (NameError)

      Object.const_get(camel_cased_word)
            ^^^^^^^^^^

To be fair action_markdown works fine with stock Rails 7.1, and socery is known Sorcery/sorcery#308 (comment) to have Rails 7 compatibility problems. But hopefully this will at save someone a couple hours if they run into the same problem.

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