Sha256: f90e3ef86368376c26130e62bb3c66612e44485d1c579ca73b94191afa791f4e

Contents?: true

Size: 219 Bytes

Versions: 7

Compression:

Stored size: 219 Bytes

Contents

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

  def decorated_email(post)
    @post = post.decorate
    mail to: "to@example.com", subject: "A decorated post"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
draper-1.0.0 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta6 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta5 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta4 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta3 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta2 spec/dummy/app/mailers/post_mailer.rb
draper-1.0.0.beta1 spec/dummy/app/mailers/post_mailer.rb