Method: Spotlight::SearchesController#update_all

Defined in:
app/controllers/spotlight/searches_controller.rb

#update_allObject



61
62
63
64
65
66
67
68
# File 'app/controllers/spotlight/searches_controller.rb', line 61

def update_all
  notice = if @exhibit.update batch_search_params
             t(:'helpers.submit.search.batch_updated', model: Spotlight::Search.model_name.human.pluralize)
           else
             t(:'helpers.submit.search.batch_error', model: Spotlight::Search.model_name.human.pluralize.downcase)
           end
  redirect_to :back, notice: notice
end