solidusio / solidus_paypal_braintree

⛔️ [Archived] Use solidus_braintree instead!
https://github.com/solidusio/solidus_braintree
BSD 3-Clause "New" or "Revised" License
37 stars 78 forks source link

Fix setup intructions on Rails 7 #332

Closed waiting-for-dev closed 1 year ago

waiting-for-dev commented 1 year ago

Summary

Since Rails 7, it's no longer possible to reference a loadable constant on the initialize phase [1]. We need to wrap the setup within a to_prepare block, as it's already documented on our guides.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed (~cross them out~ if they are not):