Class: Workflowable::ActionsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/workflowable/actions_controller.rb

Instance Method Summary collapse

Instance Method Details

#optionsObject



21
22
23
24
25
26
27
28
29
30
31
# File 'app/controllers/workflowable/actions_controller.rb', line 21

def options

  action = Action.new(action_plugin: params[:action_plugin])
  @options = action.available_options

  respond_to do |format|
    format.json { render json: @options  }
    format.js

  end
end