module Riveter::CommandController::ActionsAndSupport

Public Instance Methods

command_params() click to toggle source
# File lib/riveter/command_controller.rb, line 86
def command_params
  params.require(command_options[:as])
    .permit(*command_options[:attributes])
end
create_command() click to toggle source
# File lib/riveter/command_controller.rb, line 82
def create_command
  command_class.new()
end
on_success(command, result) click to toggle source

define the on success callback method as a placeholder to ensure implementors provide the method in their classes

# File lib/riveter/command_controller.rb, line 78
def on_success(command, result)
  raise NotImplementedError
end