Class: Thredded::AutoFollowAndNotifyJob

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

Instance Method Summary collapse

Instance Method Details

#perform(post_id) ⇒ Object



6
7
8
9
10
11
# File 'app/jobs/thredded/auto_follow_and_notify_job.rb', line 6

def perform(post_id)
  post = Post.find(post_id)

  AutofollowMentionedUsers.new(post).run
  NotifyFollowingUsers.new(post).run
end