mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fixing up tests and docs to use defaults :from => 'name' instead of defaults({:from => 'name'})
This commit is contained in:
@@ -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',
|
||||
:from => 'jose@test.plataformatec.com',
|
||||
:reply_to => 'mikel@test.lindsaar.net'})
|
||||
defaults :to => 'system@test.lindsaar.net',
|
||||
:from => 'jose@test.plataformatec.com',
|
||||
:reply_to => 'mikel@test.lindsaar.net'
|
||||
|
||||
def welcome(hash = {})
|
||||
headers['X-SPAM'] = "Not SPAM"
|
||||
|
||||
Reference in New Issue
Block a user