Class: FindRelatedPostsJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/find_related_posts_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(post) ⇒ Object


4
5
6
# File 'app/jobs/find_related_posts_job.rb', line 4

def perform(post)
  post.update_attribute :related_ids, post.find_related.pluck(:id)
end