Guest User

Untitled

a guest
Jul 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. state_machine :initial => :open do
  2. after_transition any => any do |ticket, transition|
  3. transition_symbol = transition.to.to_sym
  4. if Notifications.respond_to? transition_symbol
  5. Notifications.send(transition_symbol, ticket).deliver
  6. end
  7. end
  8. end
Add Comment
Please, Sign In to add comment