Skip to content

Instantly share code, notes, and snippets.

@debborafernandess
Created September 26, 2017 19:54
Show Gist options
  • Save debborafernandess/6ba3137c3d7372e135e22bb6b533be8c to your computer and use it in GitHub Desktop.
Save debborafernandess/6ba3137c3d7372e135e22bb6b533be8c to your computer and use it in GitHub Desktop.
# Gate ñ está expportando acesso: ?
# Addon não cancela:
# Ver se tem Location::Addon criado para a unidade / addon, muitas vezes no tem, mas tem no PurchaseAddon
# se precisar cancelar manualmente
user = User.find(x) # o solicitante do tkt
cancelling = PurchaseAddonCancelator.new(purchase, addon, user)
cancelling.send :transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment