Drop Rails.application.secrets usage

That feature is gone and we already use environment variables...

https://github.com/rails/rails/pull/47801
This commit is contained in:
Henne Vogelsang 2025-08-12 14:37:45 +02:00
parent 4ec9aee5da
commit ddcd8dfc69
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
7 changed files with 9 additions and 89 deletions

View file

@ -42,7 +42,7 @@ feature Registration do
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
expect(purchase.quantity).to eq(2)
if Rails.application.secrets.stripe_publishable_key
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
find('.stripe-button-el').click
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
@ -81,7 +81,7 @@ feature Registration do
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
expect(purchase.quantity).to eq(2)
if Rails.application.secrets.stripe_publishable_key
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
find('.stripe-button-el').click
stripe_iframe = all('iframe[name=stripe_checkout_app]').last
@ -172,7 +172,7 @@ feature Registration do
purchase = TicketPurchase.where(user_id: participant.id, ticket_id: ticket.id).first
expect(purchase.quantity).to eq(2)
if Rails.application.secrets.stripe_publishable_key
if ENV.fetch('STRIPE_PUBLISHABLE_KEY', nil)
find('.stripe-button-el').click
stripe_iframe = all('iframe[name=stripe_checkout_app]').last