Created
March 22, 2017 22:41
-
-
Save nathan-appere/ad027e4f104cee266a220b64699acd2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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