Sha256: 0ee95d895fc53784f1859d3fdbc9069a37b18d651d69b7cf9180f29394159c95
Contents?: true
Size: 387 Bytes
Versions: 20
Compression:
Stored size: 387 Bytes
Contents
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
Version data entries
20 entries across 20 versions & 4 rubygems