Class: Spotlight::DefaultThumbnailJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/spotlight/default_thumbnail_job.rb

Overview

Calls the #set_default_thumbnail method on the object passed in and calls save

Instance Method Summary collapse

Instance Method Details

#perform(thumbnailable) ⇒ Object



9
10
11
12
# File 'app/jobs/spotlight/default_thumbnail_job.rb', line 9

def perform(thumbnailable)
  thumbnailable.set_default_thumbnail
  thumbnailable.save
end