Sha256: 07412ba39f76e2fec5f15205a36f2b0fe8c0755498168a01bb03b0d9030fb684

Contents?: true

Size: 298 Bytes

Versions: 4

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class NotifyPrivateTopicUsersJob < ::ActiveJob::Base
    queue_as :default

    def perform(private_topic_id)
      private_topic = Thredded::PrivateTopic.find(private_topic_id)

      NotifyPrivateTopicUsers.new(private_topic).run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thredded-0.4.0 app/jobs/thredded/notify_private_topic_users_job.rb
thredded-0.3.2 app/jobs/thredded/notify_private_topic_users_job.rb
thredded-0.3.1 app/jobs/thredded/notify_private_topic_users_job.rb
thredded-0.3.0 app/jobs/thredded/notify_private_topic_users_job.rb