From 5d73e1e3bb4961e143ca3d6aa75ca13a7ef9a7cd Mon Sep 17 00:00:00 2001 From: Ryan Lue Date: Wed, 25 Sep 2019 11:02:20 +0800 Subject: [PATCH] Explain layout of default config initializer [ci skip] --- lib/generators/templates/devise.rb | 6 ++++++ test/rails_app/config/initializers/devise.rb | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/lib/generators/templates/devise.rb b/lib/generators/templates/devise.rb index e136b373..5f37f696 100644 --- a/lib/generators/templates/devise.rb +++ b/lib/generators/templates/devise.rb @@ -1,5 +1,11 @@ # frozen_string_literal: true +# Assuming you have not yet modified this file, each configuration option below +# is set to its default value. Note that some are commented out while others +# are not: uncommented lines are intended to protect your configuration from +# breaking changes in upgrades (i.e., in the event that future versions of +# Devise change the default values for those options). +# # Use this hook to configure devise mailer, warden hooks and so forth. # Many of these configuration options can be set straight in your model. Devise.setup do |config| diff --git a/test/rails_app/config/initializers/devise.rb b/test/rails_app/config/initializers/devise.rb index 0ce41964..a3a339ed 100644 --- a/test/rails_app/config/initializers/devise.rb +++ b/test/rails_app/config/initializers/devise.rb @@ -3,6 +3,12 @@ require "omniauth-facebook" require "omniauth-openid" +# Assuming you have not yet modified this file, each configuration option below +# is set to its default value. Note that some are commented out while others +# are not: uncommented lines are intended to protect your configuration from +# breaking changes in upgrades (i.e., in the event that future versions of +# Devise change the default values for those options). +# # Use this hook to configure devise mailer, warden hooks and so forth. The first # four configuration values can also be set straight in your models. Devise.setup do |config|