aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-02 12:32:31 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-02 12:32:31 -0800
commitb01db07a9f009016186da34c4936a9efb2c224c6 (patch)
tree2bdef9121924656ec22741d0c9c60f0dd4be12d4 /actionmailer
parent57bae9764e45ad19dff7a879eeb46d1dffc5ca22 (diff)
downloadrails-b01db07a9f009016186da34c4936a9efb2c224c6.tar.gz
rails-b01db07a9f009016186da34c4936a9efb2c224c6.tar.bz2
rails-b01db07a9f009016186da34c4936a9efb2c224c6.zip
Moved initializers for ActionMailer and ActionController into their own railties
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/railtie.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb
index c5f18c7911..779486fc96 100644
--- a/actionmailer/lib/action_mailer/railtie.rb
+++ b/actionmailer/lib/action_mailer/railtie.rb
@@ -16,6 +16,11 @@ module ActionMailer
ActionMailer::Base.logger ||= Rails.logger
end
+ initializer "action_mailer.add_view_paths" do |app|
+ views = app.config.paths.app.views.to_a
+ ActionMailer::Base.prepend_view_path(views)
+ end
+
initializer "action_mailer.set_configs" do |app|
app.config.action_mailer.each do |k,v|
ActionMailer::Base.send "#{k}=", v