ActionMailer::Railtie raises on boot #1801

Closed
yfeldblum opened this Issue Jun 21, 2011 · 2 comments

Comments

Projects
None yet
2 participants

ActionMailer::Railtie raises unless you've got:

module MyApp
  class Application < Rails::Application
    config.action_mailer.observers ||= []
    config.action_mailer.interceptors ||= []
  end
end

The throwing code is:

https://github.com/rails/rails/blob/v3.0.9/actionmailer/lib/action_mailer/base.rb#L365
https://github.com/rails/rails/blob/v3.0.9/actionmailer/lib/action_mailer/base.rb#L370

In both cases, the argument observers or interceptors is nil, and calling flatten on nil raises.

jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011

jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011

Deprecation tests for f17c876 [#1801 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Member

arunagw commented Nov 30, 2011

@yfeldblum Is this still a issue?? Can you give a try to 3.0.11 ??

Member

arunagw commented Dec 4, 2011

@yfeldblum Closing this for now. Feel free to open this again with more info if problem still exists.

Thanks

@arunagw arunagw closed this Dec 4, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment