diff --git a/lib/devise.rb b/lib/devise.rb index 810783dc..9c10fc1e 100755 --- a/lib/devise.rb +++ b/lib/devise.rb @@ -242,7 +242,10 @@ module Devise mattr_accessor :clean_up_csrf_token_on_authentication @@clean_up_csrf_token_on_authentication = true - # When false, Devise will not attempt to reload routes on eager load + # 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. mattr_accessor :reload_routes @@reload_routes = true diff --git a/lib/generators/templates/devise.rb b/lib/generators/templates/devise.rb index c6ed2143..4bc37ca5 100755 --- a/lib/generators/templates/devise.rb +++ b/lib/generators/templates/devise.rb @@ -90,6 +90,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 = true + # ==> Configuration for :database_authenticatable # For bcrypt, this is the cost for hashing the password and defaults to 11. If # using other algorithms, it sets how many times you want the password to be hashed.