diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2009-02-22 10:39:56 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-22 10:39:56 -0600 |
commit | 441e4e22352c8805a882f6a661ab3982dd7eda12 (patch) | |
tree | dfd135c9c4012724282fe8c2466dfb5bdc9d95d7 /actionmailer/lib/action_mailer | |
parent | ff1afbd65098643a06eef928f92fecf6e9d548b2 (diff) | |
download | rails-441e4e22352c8805a882f6a661ab3982dd7eda12.tar.gz rails-441e4e22352c8805a882f6a661ab3982dd7eda12.tar.bz2 rails-441e4e22352c8805a882f6a661ab3982dd7eda12.zip |
load plugin view_paths to action_mailer view_paths and make action_mailer use them [#2031 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'actionmailer/lib/action_mailer')
-rw-r--r-- | actionmailer/lib/action_mailer/base.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb index f421945763..db4589ee8f 100644 --- a/actionmailer/lib/action_mailer/base.rb +++ b/actionmailer/lib/action_mailer/base.rb @@ -254,6 +254,8 @@ module ActionMailer #:nodoc: private_class_method :new #:nodoc: class_inheritable_accessor :view_paths + self.view_paths = [] + cattr_accessor :logger @@smtp_settings = { @@ -594,7 +596,7 @@ module ActionMailer #:nodoc: end def initialize_template_class(assigns) - template = ActionView::Base.new(view_paths, assigns, self) + template = ActionView::Base.new(self.class.view_paths, assigns, self) template.template_format = default_template_format template end |