Sha256: 204be6ae167074b80ea8656ce76aae7dcc86fc57431f95603cb8c4530f874a56

Contents?: true

Size: 409 Bytes

Versions: 3

Compression:

Stored size: 409 Bytes

Contents

class PostMailer < ApplicationMailer
  default from: "from@example.com"
  layout "application"

  # Mailers don't import app/helpers automatically
  helper :application

  def presented_email(post)
    @post = PostPresenter.new(post).permit_all!
    mail to: "to@example.com", subject: "A presented post"
  end

  private

  def goodnight_moon
    "Goodnight, moon!"
  end
  helper_method :goodnight_moon
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
strong_presenter-0.2.2 spec/dummy/app/mailers/post_mailer.rb
strong_presenter-0.2.1 spec/dummy/app/mailers/post_mailer.rb
strong_presenter-0.2.0 spec/dummy/app/mailers/post_mailer.rb