Method: Pageflow::Editor::WidgetsController#batch

Defined in:
app/controllers/pageflow/editor/widgets_controller.rb

#batchObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
20
21
22
23
# File 'app/controllers/pageflow/editor/widgets_controller.rb', line 17

def batch
  subject = find_subject
  authorize!(:edit, subject.to_model)

  subject.widgets.batch_update!(widget_batch_params)
  render(json: {})
end