Class: Spotlight::ReindexJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/spotlight/reindex_job.rb

Overview

Reindex the given resources or exhibits

Instance Method Summary collapse

Instance Method Details

#perform(exhibit_or_resources, log_entry = nil) ⇒ Object



33
34
35
36
37
# File 'app/jobs/spotlight/reindex_job.rb', line 33

def perform(exhibit_or_resources, log_entry = nil)
  resource_list(exhibit_or_resources).each do |resource|
    resource.reindex(log_entry)
  end
end