Sha256: 4e56f09a111cf215871c17ff07802608faa43b574856dd99be0d9cab3fa50c0e
Contents?: true
Size: 457 Bytes
Versions: 6
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true module Thredded class EmailNotifier def human_name I18n.t('thredded.email_notifier.by_email') end def key 'email' end def new_post(post, users) PostMailer.post_notification(post.id, users.map(&:email)).deliver_now end def new_private_post(post, users) PrivateTopicMailer.message_notification(post.postable.id, post.id, users.map(&:email)).deliver_now end end end
Version data entries
6 entries across 6 versions & 1 rubygems