]> git.openstreetmap.org Git - rails.git/blob - app/notifiers/diary_comment_notifier.rb
Merge remote-tracking branch 'upstream/pull/6993'
[rails.git] / app / notifiers / diary_comment_notifier.rb
1 # frozen_string_literal: true
2
3 class DiaryCommentNotifier < ApplicationNotifier
4   recipients -> { record.notifiable_subscribers }
5
6   validates :record, :presence => true
7
8   deliver_by :email do |config|
9     config.mailer = "UserMailer"
10     config.method = "diary_comment_notification"
11   end
12 end