Class: Spotlight::BulkActionsController

Inherits:
CatalogController
  • Object
show all
Defined in:
app/controllers/spotlight/bulk_actions_controller.rb

Overview

Controller enabling bulk functionality for search results

Instance Method Summary collapse

Instance Method Details

#add_tags ⇒ Object



10
11
12
# File 'app/controllers/spotlight/bulk_actions_controller.rb', line 10

def add_tags
  handle_bulk_action_with_job(Spotlight::AddTagsJob, tags: add_tags_params)
end

#change_visibility ⇒ Object



18
19
20
# File 'app/controllers/spotlight/bulk_actions_controller.rb', line 18

def change_visibility
  handle_bulk_action_with_job(Spotlight::ChangeVisibilityJob, visibility: change_visibility_params)
end

#remove_tags ⇒ Object



14
15
16
# File 'app/controllers/spotlight/bulk_actions_controller.rb', line 14

def remove_tags
  handle_bulk_action_with_job(Spotlight::RemoveTagsJob, tags: remove_tags_params)
end