lib/auth_helpers/notifier.rb in josevalim-auth_helpers-0.1.0 vs lib/auth_helpers/notifier.rb in josevalim-auth_helpers-0.1.1

- old
+ new

@@ -14,13 +14,10 @@ # AuthHelpers::Notifier.content_type = 'text/html' # class Notifier < ActionMailer::Base class << self; attr_accessor :sender, :content_type end - self.content_type = 'text/html' - self.template_root = File.join(File.dirname(__FILE__), '..', '..', 'views') - def new_account(record) @subject = I18n.t 'actionmailer.auth_helpers.new_account', :default => 'New account' set_ivars!(:confirmable, record) end @@ -50,5 +47,8 @@ @headers = {} end end end + +AuthHelpers::Notifier.content_type = 'text/html' +AuthHelpers::Notifier.template_root = File.join(File.dirname(__FILE__), '..', '..', 'views')