Skip to content

Instantly share code, notes, and snippets.

@dangalipo
Last active December 18, 2015 22:48
Show Gist options
  • Save dangalipo/5856681 to your computer and use it in GitHub Desktop.
Save dangalipo/5856681 to your computer and use it in GitHub Desktop.
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