Skip to content

Commit

Permalink
Standardize to Ruby 2.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Aug 22, 2023
1 parent 2e2be1d commit 5a32793
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ruby_version: 2.7
ignore:
- 'test/dummy/**/*'
- 'lib/generators/active_record/templates/*'
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ module Braintree
module Webhooks
class SubscriptionChargedUnsuccessfully
def call(event)
subscription = event.subscription
return if subscription.nil?
# subscription = event.subscription
# return if subscription.nil?

pay_subscription = Pay::Subscription.find_by_processor_and_id(:braintree, subscription.id)
return unless pay_subscription.present?
# pay_subscription = Pay::Subscription.find_by_processor_and_id(:braintree, subscription.id)
# return unless pay_subscription.present?

# pay_customer = pay_subscription.customer
# pay_charge = Pay::Braintree::Billable.new(pay_customer).save_transaction(subscription.transactions.first)
Expand Down

0 comments on commit 5a32793

Please sign in to comment.