Skip to content

Commit

Permalink
Merge pull request #136 from diegomichel/update-instructions-for-rails-7
Browse files Browse the repository at this point in the history
Fix setup instructions for Rails 7
  • Loading branch information
waiting-for-dev authored Dec 2, 2022
2 parents dc42bfe + 5750358 commit a68e0d9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,8 @@ variables you can create the following static configuration:

```ruby
# config/initializers/spree.rb

Spree.config do |config|
# ...

config.static_model_preferences.add(
Rails.application.config.to_prepare do
Spree::Config.static_model_preferences.add(
Spree::PaymentMethod::StripeCreditCard,
'stripe_env_credentials',
secret_key: ENV['STRIPE_SECRET_KEY'],
Expand Down

0 comments on commit a68e0d9

Please sign in to comment.