spec/dummy/app/mailers/post_mailer.rb in draper-1.0.0 vs spec/dummy/app/mailers/post_mailer.rb in draper-1.1.0

- old
+ new

@@ -1,9 +1,19 @@ class PostMailer < ApplicationMailer default from: "from@example.com" layout "application" + # Mailers don't import app/helpers automatically + helper :application + def decorated_email(post) @post = post.decorate mail to: "to@example.com", subject: "A decorated post" end + + private + + def goodnight_moon + "Goodnight, moon!" + end + helper_method :goodnight_moon end