Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- state_machine :initial => :open do
- after_transition any => any do |ticket, transition|
- transition_symbol = transition.to.to_sym
- if Notifications.respond_to? transition_symbol
- Notifications.send(transition_symbol, ticket).deliver
- end
- end
- end
Add Comment
Please, Sign In to add comment