Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 5900443

Browse files
rafalcymerysgitbook-bot
authored andcommitted
GitBook: [#158] Rafal Cymerys's Jan 11 changes
1 parent b4fde9f commit 5900443

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

upgrades/upgrades/4.4-to-4.5.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ If you don't perform this update to the code, you may expect to get the followin
3737
uninitialized constant Spree::Preference (NameError)
3838
```
3939
40+
## Update other initializers
41+
42+
Just like with Spree::Config, you may need to [update other intializers in your application, that use autoloadable constants](https://rubyonrails.org/2021/9/3/autoloading-in-rails-7-get-ready).
43+
44+
For example, if you use `spree_auth_devise`, you'll need to update `config/initializers/devise.rb` and wrap the configuration in `Rails.application.config.after_initialize` block:
45+
46+
```
47+
Rails.application.config.after_initialize do
48+
if defined?(Spree::Auth)
49+
Spree::Auth::Config.signout_after_password_change = false
50+
end
51+
end
52+
```
53+
4054
## Update Gemfile
4155
4256
```

0 commit comments

Comments
 (0)