app/models/concerns/state_transition_support.rb
# Triggers an event, moving record to associated state, if permitted
# Raises exception if event is not permitted
Triggers an event, moving record to associated state, if permitted
Raises exception if event is not permitted
Triggers an event moving record to associated state if permitted Raises exception if event is not permitted
def trigger!(event, metadata={})
      if !trigger(event, metadata)
        raise StateTransitionException::TransitionNotPermitted
      end
    end
def trigger! ( event , metadata = { } ) if ! trigger ( event , metadata ) raise StateTransitionException :: TransitionNotPermitted end end
Triggers an event, moving record to associated state, if permitted
Raises exception if event is not permitted
Triggers an event moving record to associated state if permitted Raises exception if event is not permitted
event
<not_specific>
metadata
<not_specific>