Class: Decidim::UpdateSearchIndexesJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/decidim/update_search_indexes_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(elements, current_depth = 0) ⇒ Object



7
8
9
# File 'app/jobs/decidim/update_search_indexes_job.rb', line 7

def perform(elements, current_depth = 0)
  elements.each { |element| element.try(:try_update_index_for_search_resource, current_depth) }
end