openSUSE/osem

View on GitHub
app/jobs/event_comment_mail_job.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

class EventCommentMailJob < ApplicationJob
  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