diff --git a/app/controllers/crops_controller.rb b/app/controllers/crops_controller.rb index baf56aa1a..1e49f8a3e 100644 --- a/app/controllers/crops_controller.rb +++ b/app/controllers/crops_controller.rb @@ -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 diff --git a/app/mailers/notifier.rb b/app/mailers/notifier_mailer.rb similarity index 98% rename from app/mailers/notifier.rb rename to app/mailers/notifier_mailer.rb index c2b68d796..345c3cad3 100644 --- a/app/mailers/notifier.rb +++ b/app/mailers/notifier_mailer.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class Notifier < ApplicationMailer +class NotifierMailer < ApplicationMailer # include NotificationsHelper default from: "Growstuff <#{ENV['GROWSTUFF_EMAIL']}>"