Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.