Rename Notifer to NotifierMailer

This commit is contained in:
Brenda Wallace
2020-08-02 13:46:01 +12:00
committed by Brenda Wallace
parent 33944adf6c
commit 4906aaa180
2 changed files with 4 additions and 4 deletions

View File

@@ -145,9 +145,9 @@ class CropsController < ApplicationController
def notifier
case @crop.approval_status
when "approved"
Notifier.crop_request_approved(@crop.requester, @crop)
NotifierMailer.crop_request_approved(@crop.requester, @crop)
when "rejected"
Notifier.crop_request_rejected(@crop.requester, @crop)
NotifierMailer.crop_request_rejected(@crop.requester, @crop)
end
end
@@ -164,7 +164,7 @@ class CropsController < ApplicationController
return if current_member.role? :crop_wrangler
Role.crop_wranglers&.each do |w|
Notifier.new_crop_request(w, @crop).deliver_now!
NotifierMailer.new_crop_request(w, @crop).deliver_now!
end
end

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
class Notifier < ApplicationMailer
class NotifierMailer < ApplicationMailer
# include NotificationsHelper
default from: "Growstuff <#{ENV['GROWSTUFF_EMAIL']}>"