osem-fcy/app/jobs/event_comment_mail_job.rb

12 lines
278 B
Ruby
Raw Normal View History

2016-04-22 11:29:38 +02:00
class EventCommentMailJob < ActiveJob::Base
queue_as :default
def perform(comment)
conference = comment.commentable.program.conference
User.comment_notifiable(conference).each do |user|
Mailbot.event_comment_mail(comment, user).deliver_now
end
end
end