Method: StateMachine::Machine#before
- Defined in:
- lib/call_center/state_machine_ext.rb
#before(state_name, scope, options, &blk) ⇒ Object
12 13 14 15 |
# File 'lib/call_center/state_machine_ext.rb', line 12 def before(state_name, scope, , &blk) @callback_blocks ||= [] @callback_blocks << CallCenter::FlowCallback.create(state_name, :always, , blk) end |