Sha256: 9eec57ca90cf3d629481339ad2a92c63465c5342d1a83ad870a18bec646a9519
Contents?: true
Size: 672 Bytes
Versions: 17
Compression:
Stored size: 672 Bytes
Contents
module Proclaim # Preview all emails at http://localhost:3000/rails/mailers/subscription_mailer class SubscriptionMailerPreview < ActionMailer::Preview def welcome_email subscription = Subscription.first SubscriptionMailer.welcome_email(subscription) end def new_post_notification_email subscription = Subscription.first post = Post.first SubscriptionMailer.new_post_notification_email(subscription, post) end def new_comment_notification_email subscription = Subscription.where("post_id <> ''").first comment = subscription.post.comments.first SubscriptionMailer.new_comment_notification_email(subscription, comment) end end end
Version data entries
17 entries across 17 versions & 1 rubygems