Skip to content

Instantly share code, notes, and snippets.

@nathan-appere
Created March 22, 2017 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathan-appere/ad027e4f104cee266a220b64699acd2f to your computer and use it in GitHub Desktop.
Save nathan-appere/ad027e4f104cee266a220b64699acd2f to your computer and use it in GitHub Desktop.
organize [
Interactors::Upgrade::EnsureAccountOwner,
->(ctx) { ctx.payment_source = ctx.current_subscription.payment_source },
Interactors::Upgrade::EnsureValidUpgrade,
->(ctx) { Interactors::Subscribe::CreateSubscription.call(ctx, ended_at: ctx.upgraded_at) }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment