Class: Thredded::NotifyPrivateTopicUsersJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/thredded/notify_private_topic_users_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(private_post_id) ⇒ Object



7
8
9
10
# File 'app/jobs/thredded/notify_private_topic_users_job.rb', line 7

def perform(private_post_id)
  private_post = Thredded::PrivatePost.find(private_post_id)
  NotifyPrivateTopicUsers.new(private_post).run
end