Disable route reloading in Devise initialization (#40257)

This commit is contained in:
Claire
2026-10-02 11:41:07 +00:00
committed by GitHub
parent 5d7465a9d5
commit 1bf178ee59

View File

@@ -189,6 +189,12 @@ Devise.setup do |config|
# from the server. You can disable this option at your own risk.
# config.clean_up_csrf_token_on_authentication = true
# When false, Devise will not attempt to reload routes on eager load.
# This can reduce the time taken to boot the app but if your application
# requires the Devise mappings to be loaded during boot time the application
# won't boot properly.
config.reload_routes = false
# ==> Configuration for :database_authenticatable
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
# using other encryptors, it sets how many times you want the password re-encrypted.