Sha256: 0d454262829f759a7e07bf1da22b0ee9f7e127ce367341c85a03ad63c10c8c00

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
ruby-on-quails-0.1.0 actionmailer/test/mailers/proc_mailer.rb