Class: Hyrax::WorkflowActionsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/hyrax/workflow_actions_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



5
6
7
8
9
10
11
12
13
14
# File 'app/controllers/hyrax/workflow_actions_controller.rb', line 5

def update
  if workflow_action_form.save
    after_update_response
  else
    respond_to do |wants|
      wants.html { render 'hyrax/base/unauthorized', status: :unauthorized }
      wants.json { render_json_response(response_type: :unprocessable_entity, options: { errors: curation_concern.errors }) }
    end
  end
end