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

Can we avoid loading ActionMailer? #62

Open
fgrehm opened this issue Dec 13, 2024 · 0 comments
Open

Can we avoid loading ActionMailer? #62

fgrehm opened this issue Dec 13, 2024 · 0 comments

Comments

@fgrehm
Copy link

fgrehm commented Dec 13, 2024

Hey folks! 👋

I'm trying out the gem in development but am having trouble with action_mailer:

16:07 $ rails console

Type 'jobs_help' to see how to connect to the available job servers to manage jobs

/.../ruby/3.3.5/lib/ruby/gems/3.3.0/gems/audits1984-0.1.7/app/mailers/audits1984/application_mailer.rb:2:in `<module:Audits1984>': uninitialized constant Audits1984::ActionMailer (NameError)

  class ApplicationMailer < ActionMailer::Base
                            ^^^^^^^^^^^^
Did you mean?  ActionView
        from /.../ruby/3.3.5/lib/ruby/gems/3.3.0/gems/audits1984-0.1.7/app/mailers/audits1984/application_mailer.rb:1:in `<main>'
        from /.../ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `require'
        from /.../ruby/3.3.5/lib/ruby/3.3.0/bundled_gems.rb:75:in `block (2 levels) in replace_require'

We cherry pick the Rails engines used by our app and we don't use action_mailer. I tried to uncomment the require "action_mailer/railtie" on our application.rb but ended up hitting other problems.

Any thoughts around this?

PS: I ended up moving on to other things for now 😭 Will come back to this another time 🙏 🤞

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

No branches or pull requests

1 participant