diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-22 01:10:31 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-22 01:10:31 +0100 |
commit | 02c5137eadbb3530033d919b7aebeb6f4f389b83 (patch) | |
tree | 06a0a7c1431d73e9092d96f99e0718d7dda4fe80 /actionmailer/lib | |
parent | 7fcf8590e788cef8b64cc266f75931c418902ca9 (diff) | |
download | rails-02c5137eadbb3530033d919b7aebeb6f4f389b83.tar.gz rails-02c5137eadbb3530033d919b7aebeb6f4f389b83.tar.bz2 rails-02c5137eadbb3530033d919b7aebeb6f4f389b83.zip |
Add view paths to Engine setup.
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/railtie.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/railtie.rb b/actionmailer/lib/action_mailer/railtie.rb index b05d21ae5d..94d9eaf81b 100644 --- a/actionmailer/lib/action_mailer/railtie.rb +++ b/actionmailer/lib/action_mailer/railtie.rb @@ -21,8 +21,7 @@ module ActionMailer initializer "action_mailer.view_paths" do |app| # TODO: this should be combined with the logic for default config.action_mailer.view_paths - view_path = ActionView::PathSet.type_cast(app.config.view_path, app.config.cache_classes) - ActionMailer::Base.template_root = view_path if ActionMailer::Base.view_paths.blank? + ActionMailer::Base.template_root = [] if ActionMailer::Base.view_paths.blank? end end end
\ No newline at end of file |