Class: Hyrax::WorkflowActionsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Hyrax::WorkflowActionsController
- Defined in:
- app/controllers/hyrax/workflow_actions_controller.rb
Constant Summary collapse
- DEFAULT_FORM_CLASS =
Hyrax::Forms::WorkflowActionForm
Instance Attribute Summary collapse
-
#curation_concern ⇒ Object
readonly
Returns the value of attribute curation_concern.
Instance Method Summary collapse
Instance Attribute Details
#curation_concern ⇒ Object (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
#update ⇒ Object
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 |