diff options
author | Michael Koziarski <michael@koziarski.com> | 2008-01-21 20:45:04 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-01-21 20:45:04 +0000 |
commit | 61c90a4ad6eab3623002353ed5867e2f05cb6809 (patch) | |
tree | 12855a156606c9af87c3f24d46d52dc859a55496 /actionmailer | |
parent | 32b36b8936b043d54daad072054f95429e462ff8 (diff) | |
download | rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.tar.gz rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.tar.bz2 rails-61c90a4ad6eab3623002353ed5867e2f05cb6809.zip |
Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. Closes #10800 [lifofifo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index b15c010e83..2da3679206 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -393,6 +393,11 @@ module ActionMailer #:nodoc: def register_template_extension(extension) template_extensions << extension end + + def template_root=(root) + write_inheritable_attribute(:template_root, root) + ActionView::TemplateFinder.process_view_paths(root) + end end # Instantiate a new mailer object. If +method_name+ is not +nil+, the mailer |