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