mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-07 23:03:58 -05:00
Update argument name for config.warden
This commit is contained in:
@@ -446,9 +446,9 @@ module Devise
|
||||
# Devise.setup do |config|
|
||||
# config.allow_unconfirmed_access_for = 2.days
|
||||
#
|
||||
# config.warden do |manager|
|
||||
# config.warden do |warden_config|
|
||||
# # Configure warden to use other strategies, like oauth.
|
||||
# manager.oauth(:twitter)
|
||||
# warden_config.oauth(:twitter)
|
||||
# end
|
||||
# end
|
||||
def self.warden(&block)
|
||||
|
||||
@@ -277,9 +277,9 @@ Devise.setup do |config|
|
||||
# If you want to use other strategies, that are not supported by Devise, or
|
||||
# change the failure app, you can configure them inside the config.warden block.
|
||||
#
|
||||
# config.warden do |manager|
|
||||
# manager.intercept_401 = false
|
||||
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
||||
# config.warden do |warden_config|
|
||||
# warden_config.intercept_401 = false
|
||||
# warden_config.default_strategies(scope: :user).unshift :some_external_strategy
|
||||
# end
|
||||
|
||||
# ==> Mountable engine configurations
|
||||
|
||||
@@ -181,9 +181,9 @@ Devise.setup do |config|
|
||||
# If you want to use other strategies, that are not supported by Devise, or
|
||||
# change the failure app, you can configure them inside the config.warden block.
|
||||
#
|
||||
# config.warden do |manager|
|
||||
# manager.failure_app = AnotherApp
|
||||
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
||||
# config.warden do |warden_config|
|
||||
# warden_config.failure_app = AnotherApp
|
||||
# warden_config.default_strategies(scope: :user).unshift :some_external_strategy
|
||||
# end
|
||||
|
||||
# ==> Configuration for :registerable
|
||||
|
||||
Reference in New Issue
Block a user