We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25818e7 commit fedd0ebCopy full SHA for fedd0eb
app/services/email_notifications/send_all.rb
@@ -4,7 +4,7 @@ def call
4
check_uniqueness
5
6
EmailNotification.all.each do |email_notification|
7
- if email_notification.notifiable.compats.none?(&:pending?)
+ if email_notification.notifiable.compats.pending.none?
8
ApplicationMailer.email_notification(email_notification).deliver_now
9
email_notification.delete
10
end
0 commit comments