Class: Hyrax::WorkflowActionsController

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

Constant Summary collapse

DEFAULT_FORM_CLASS =
Hyrax::Forms::WorkflowActionForm

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#curation_concernObject (readonly)

Returns the value of attribute curation_concern.



10
11
12
# File 'app/controllers/hyrax/workflow_actions_controller.rb', line 10

def curation_concern
  @curation_concern
end

Instance Method Details

#updateObject



16
17
18
19
20
21
22
23
24
25
# File 'app/controllers/hyrax/workflow_actions_controller.rb', line 16

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: workflow_action_form.errors }) }
    end
  end
end