From 61c90a4ad6eab3623002353ed5867e2f05cb6809 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Mon, 21 Jan 2008 20:45:04 +0000 Subject: 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 --- actionmailer/lib/action_mailer/base.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionmailer/lib/action_mailer') 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 -- cgit v1.2.3