1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/mailers/proc_mailer.rb
Jeroen van Dijk and Josh Kalderimis affeb51569 Move config_accessor :asset_host from ActionController::Base to AbstractController which fixes issues with asset_host in ActionMailer
Including:
  - Moved mailer objects in separate directory
  - Added two tests for asset_host configuration option
2010-07-24 00:27:25 +02:00

16 lines
320 B
Ruby

class ProcMailer < ActionMailer::Base
default :to => 'system@test.lindsaar.net',
'X-Proc-Method' => Proc.new { Time.now.to_i.to_s },
:subject => Proc.new { give_a_greeting }
def welcome
mail
end
private
def give_a_greeting
"Thanks for signing up this afternoon"
end
end