Last active
December 18, 2015 22:48
-
-
Save dangalipo/5856681 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def pending_subscription_creation_required? | |
updated_pending_subscription_required? || new_pending_subscription_required? | |
end | |
def updated_pending_subscription_required? | |
@account.pending_subscription.present? | |
end | |
def new_pending_subscription_required? | |
(@account.pending_subscription.nil? && (frequency_change? || tier_downgrade?)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment