mirror of https://github.com/rails/rails
Fixing up tests and docs to use defaults :from => 'name' instead of defaults({:from => 'name'})
This commit is contained in:
parent
1133757a95
commit
ccea6ab07d
|
@ -23,7 +23,8 @@ module ActionMailer #:nodoc:
|
|||
# Examples:
|
||||
#
|
||||
# class Notifier < ActionMailer::Base
|
||||
# defaults({:from => 'system@example.com'})
|
||||
# defaults :from => 'no-reply@example.com',
|
||||
# :return_path => 'system@example.com'
|
||||
#
|
||||
# def welcome(recipient)
|
||||
# @account = recipient
|
||||
|
|
|
@ -5,9 +5,9 @@ class BaseTest < ActiveSupport::TestCase
|
|||
class BaseMailer < ActionMailer::Base
|
||||
self.mailer_name = "base_mailer"
|
||||
|
||||
defaults({:to => 'system@test.lindsaar.net',
|
||||
defaults :to => 'system@test.lindsaar.net',
|
||||
:from => 'jose@test.plataformatec.com',
|
||||
:reply_to => 'mikel@test.lindsaar.net'})
|
||||
:reply_to => 'mikel@test.lindsaar.net'
|
||||
|
||||
def welcome(hash = {})
|
||||
headers['X-SPAM'] = "Not SPAM"
|
||||
|
|
Loading…
Reference in New Issue