Class: Corvette::Action

Inherits:
Act
  • Object
show all
Includes:
Auxiliary, Required
Defined in:
lib/corvette/action.rb

Instance Method Summary collapse

Methods inherited from Act

#act_error, #act_name, #act_success, #initialize, #log_error, #logger, #process_callbacks, #process_params, #run

Methods included from Assertion

#assert

Constructor Details

This class inherits a constructor from Corvette::Act

Instance Method Details

#action(params) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/corvette/action.rb', line 9

def action(params)
	process_params(params)
	yield
	act_success
rescue StandardError => exception
	log_error(exception, params)
	act_error(exception)
end