Sha256: ca2dc76d38adac1cfea90d1d1f5a402b5f9efa31962ff03d75d0acd0108ee9a2

Contents?: true

Size: 439 Bytes

Versions: 6

Compression:

Stored size: 439 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.id, users.map(&:email)).deliver_now
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
thredded-0.13.8 app/notifiers/thredded/email_notifier.rb
thredded-0.13.7 app/notifiers/thredded/email_notifier.rb
thredded-0.13.6 app/notifiers/thredded/email_notifier.rb
thredded-0.13.5 app/notifiers/thredded/email_notifier.rb
thredded-0.13.4 app/notifiers/thredded/email_notifier.rb
thredded-0.13.3 app/notifiers/thredded/email_notifier.rb