Sha256: 044fc8ff9a03c534187d01d29e10bd1294f9b1701771e0f0f3958a18056e124b

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

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 },
          'x-has-to-proc' => :symbol

  def welcome
    mail
  end

  private

  def give_a_greeting
    "Thanks for signing up this afternoon"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activejob-lock-0.0.2 rails/actionmailer/test/mailers/proc_mailer.rb
activejob-lock-0.0.1 rails/actionmailer/test/mailers/proc_mailer.rb