blob: 7ed1519e36cb2360de7cba6b5d51304ff6f5baa2 (
plain) (
tree)
|
|
require "action_mailer"
require "rails"
module ActionMailer
class Railtie < Rails::Railtie
railtie_name :action_mailer
require "action_mailer/railties/subscriber"
subscriber ActionMailer::Railties::Subscriber.new
initializer "action_mailer.logger" do
ActionMailer::Base.logger ||= Rails.logger
end
initializer "action_mailer.set_configs" do |app|
app.config.action_mailer.each do |k,v|
ActionMailer::Base.send "#{k}=", v
end
end
end
end
|