aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-07-24 00:48:12 +0200
committerJosé Valim <jose.valim@gmail.com>2010-07-24 00:48:12 +0200
commit76b6136b00a9d0a74f99ca4f1ae347230bde94e0 (patch)
treecd6f33c1215b87b6971535cfed9e383e59139433 /actionmailer
parent2af8fd2829ec573ef7da8a44d31e5f25ef4a8408 (diff)
downloadrails-76b6136b00a9d0a74f99ca4f1ae347230bde94e0.tar.gz
rails-76b6136b00a9d0a74f99ca4f1ae347230bde94e0.tar.bz2
rails-76b6136b00a9d0a74f99ca4f1ae347230bde94e0.zip
Clean up AM and AC railties.
Diffstat (limited to 'actionmailer')
-rw-r--r--actionmailer/lib/action_mailer/railtie.rb17
1 files changed, 6 insertions, 11 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb
index d7b09b2dc6..ce6d8cc5b5 100644
--- a/actionmailer/lib/action_mailer/railtie.rb
+++ b/actionmailer/lib/action_mailer/railtie.rb
@@ -10,21 +10,16 @@ module ActionMailer
end
initializer "action_mailer.set_configs" do |app|
- paths = app.config.paths
- am = app.config.action_mailer
+ paths = app.config.paths
+ options = app.config.action_mailer
- am.assets_dir ||= paths.public.to_a.first
- am.javascripts_dir ||= paths.public.javascripts.to_a.first
- am.stylesheets_dir ||= paths.public.stylesheets.to_a.first
+ options.assets_dir ||= paths.public.to_a.first
+ options.javascripts_dir ||= paths.public.javascripts.to_a.first
+ options.stylesheets_dir ||= paths.public.stylesheets.to_a.first
ActiveSupport.on_load(:action_mailer) do
- self.config.merge!(am)
-
include app.routes.url_helpers
-
- app.config.action_mailer.each do |k,v|
- send "#{k}=", v
- end
+ options.each { |k,v| send("#{k}=", v) }
end
end
end