style: correct coding style with rubocop linter

This commit is contained in:
kbe
2025-09-05 12:02:44 +02:00
parent 46c8faf10c
commit 15e3c7dff5
40 changed files with 121 additions and 1663 deletions

View File

@@ -3,10 +3,10 @@ module StripeHelper
def safe_stripe_call(&block)
# Check if Stripe is properly configured
return nil unless Rails.application.config.stripe[:secret_key].present?
# Stripe is now initialized at application startup
Rails.logger.debug "Using globally initialized Stripe"
begin
yield if block_given?
rescue Stripe::StripeError => e
@@ -14,4 +14,4 @@ module StripeHelper
nil
end
end
end
end