1
0
Fork 0

Configure Devise scopes

This commit is contained in:
Alex Kotov 2018-11-30 02:45:37 +05:00
parent b344065ec9
commit 5c76bc85dd
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -233,15 +233,15 @@ Devise.setup do |config|
# Turn scoped views on. Before rendering "sessions/new", it will first check for
# "users/sessions/new". It's turned off by default because it's slower if you
# are using only default views.
# config.scoped_views = false
config.scoped_views = true
# Configure the default scope given to Warden. By default it's the first
# devise role declared in your routes (usually :user).
# config.default_scope = :user
config.default_scope = :user
# Set this configuration to false if you want /users/sign_out to sign out
# only the current scope. By default, Devise signs out all scopes.
# config.sign_out_all_scopes = true
config.sign_out_all_scopes = false
# ==> Navigation configuration
# Lists the formats that should be treated as navigational. Formats like