Skip to content

Commit faa2ccf

Browse files
committed
Do not reload routes before application startup
This devise.rb initializer is run for most stores, and by setting `reload_routes` to `false`, we can avoid Devise reloading the routes in an initializer. Rails will do this just fine, but not in the initializer chain.
1 parent 361b739 commit faa2ccf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

config/initializers/devise.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,4 +143,6 @@
143143
config.reset_password_within = 6.hours
144144

145145
config.case_insensitive_keys = [:email]
146+
147+
config.reload_routes = false
146148
end

0 commit comments

Comments
 (0)