Sha256: 6ed78a926f19a0278a85b766c3488713f327b9a81d04cafc7951bb8d4fbab96b

Contents?: true

Size: 153 Bytes

Versions: 3

Compression:

Stored size: 153 Bytes

Contents

module MailerMacros

  def last_email
    ActionMailer::Base.deliveries.last
  end

  def reset_emails
    ActionMailer::Base.deliveries = []
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tsrails-2.0.3 template/files/mailer_macros.rb
tsrails-2.0.2 template/files/mailer_macros.rb
tsrails-2.0.0 template/files/mailer_macros.rb