# File lib/transitions/state.rb, line 21 def call_action(action, record) action = @options[action] case action when Symbol, String record.send(action) when Proc action.call(record) end end