app/jobs/spotlight/default_thumbnail_job.rb in blacklight-spotlight-3.0.0.rc3 vs app/jobs/spotlight/default_thumbnail_job.rb in blacklight-spotlight-3.0.0.rc4
- old
+ new
@@ -3,12 +3,10 @@
module Spotlight
###
# Calls the #set_default_thumbnail method
# on the object passed in and calls save
###
- class DefaultThumbnailJob < ActiveJob::Base
- queue_as :default
-
+ class DefaultThumbnailJob < Spotlight::ApplicationJob
def perform(thumbnailable)
thumbnailable.set_default_thumbnail
thumbnailable.save
end
end