app/mailers/moderator_mailer.rb
def story_approved(story)
    @story = story

    emails = Subscription.validated.pluck(:email)
    subject =
      I18n.t(
        'mailers.moderator_mailer.story_approved.subject',
        story_identifier: story.identifier
      )

    mail(to: 'noreply@wm-memories.herokuapp.com', subject: subject, bcc: emails)
  end
# notify subscribers of a story approval
notify subscribers of a story approval
notify subscribers of a story approval
def story_approved(story)
    @story = story
    emails = Subscription.validated.pluck(:email)
    subject =
      I18n.t(
        'mailers.moderator_mailer.story_approved.subject',
        story_identifier: story.identifier
      )
    mail(to: 'noreply@wm-memories.herokuapp.com', subject: subject, bcc: emails)
  end
def story_approved ( story ) @story = story emails = Subscription . validated . pluck ( :email ) subject = I18n . t ( 'mailers.moderator_mailer.story_approved.subject' , story_identifier : story . identifier ) mail ( to : 'noreply@wm-memories.herokuapp.com' , subject : subject , bcc : emails ) end
notify subscribers of a story approval
notify subscribers of a story approval
story