]> git.openstreetmap.org Git - rails.git/blob - app/notifiers/changeset_comment_notifier.rb
Merge pull request #6920 from tomhughes/erb-strict-locals-required
[rails.git] / app / notifiers / changeset_comment_notifier.rb
1 # frozen_string_literal: true
2
3 class ChangesetCommentNotifier < 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 = "changeset_comment_notification"
11   end
12 end