Sha256: 6d81775d5267a048a1c5b909dd572db21574dd2eeaa85ab4f9cda65ac580421f

Contents?: true

Size: 319 Bytes

Versions: 52

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ###
  # Calls the #set_default_thumbnail method
  # on the object passed in and calls save
  ###
  class DefaultThumbnailJob < Spotlight::ApplicationJob
    def perform(thumbnailable)
      thumbnailable.set_default_thumbnail
      thumbnailable.save
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.1 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.4.0 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.3.0 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.2.0 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.1.0 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.3 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.2 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.1 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.0 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.0.rc6 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.0.rc5 app/jobs/spotlight/default_thumbnail_job.rb
blacklight-spotlight-3.0.0.rc4 app/jobs/spotlight/default_thumbnail_job.rb