mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
don't notify wranglers if there are none
This commit is contained in:
@@ -139,7 +139,7 @@ class CropsController < ApplicationController
|
||||
def notify_wranglers
|
||||
return if current_member.role? :crop_wrangler
|
||||
|
||||
Role.crop_wranglers.each do |w|
|
||||
Role.crop_wranglers&.each do |w|
|
||||
Notifier.new_crop_request(w, @crop).deliver_now!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user