mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-04-04 23:24:49 -04:00
Rename Notifer to NotifierMailer
This commit is contained in:
committed by
Brenda Wallace
parent
33944adf6c
commit
4906aaa180
@@ -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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Notifier < ApplicationMailer
|
||||
class NotifierMailer < ApplicationMailer
|
||||
# include NotificationsHelper
|
||||
default from: "Growstuff <#{ENV['GROWSTUFF_EMAIL']}>"
|
||||
|
||||
Reference in New Issue
Block a user