Closed waiting-for-dev closed 1 year ago
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.
to_prepare
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):
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):