We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is would be nice to have a utility method like is_active? on the Subscription object. For example, to check if a subscription is active we now write:
is_active?
payment_method.subscriptions.any? do |subscription| subscription.status == Braintree::Subscription::Status::Active end
It would improve our code if that could be replaced by something like payment_method.subscriptions.any?(&:is_active?)
payment_method.subscriptions.any?(&:is_active?)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is would be nice to have a utility method like
is_active?
on the Subscription object. For example, to check if a subscription is active we now write:It would improve our code if that could be replaced by something like
payment_method.subscriptions.any?(&:is_active?)
The text was updated successfully, but these errors were encountered: