Class: Decidim::RemoveSearchIndexesJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Decidim::RemoveSearchIndexesJob
- Defined in:
- app/jobs/decidim/remove_search_indexes_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(elements) ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'app/jobs/decidim/remove_search_indexes_job.rb', line 7 def perform(elements) elements.each do |element| element.remove_from_index(element) next unless element.respond_to?(:comments) element.comments.each do |comment| Decidim::RemoveSearchIndexesJob.perform_later([comment]) end end end |