Sha256: 47ec7962c0e84faee6fee5b7c74bf6585733579a6c0dbb0c1ad535731d504551

Contents?: true

Size: 397 Bytes

Versions: 10

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module Talkie
  class NotificationsMailer < ActionMailer::Base
    default from: Talkie.from_mailer_address

    def mentioned
      @comment = params[:comment]
      @creator = @comment.creator
      recipients = params[:recipients]
      mail to: recipients,
           subject: t("talkie.mailers.notifications.subject", creator: @creator.email)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
talkie-0.5.1 app/mailers/talkie/notifications_mailer.rb
talkie-0.5.0 app/mailers/talkie/notifications_mailer.rb
talkie-0.4.1 app/mailers/talkie/notifications_mailer.rb
talkie-0.4.0 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.5 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.4 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.3 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.2 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.1 app/mailers/talkie/notifications_mailer.rb
talkie-0.3.0 app/mailers/talkie/notifications_mailer.rb