config/initializers/devise.rb in g5_authenticatable-0.9.1.pre.2 vs config/initializers/devise.rb in g5_authenticatable-1.0.0.pre.1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
# 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|
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
@@ -237,9 +239,11 @@
#
config.warden do |manager|
# Add custom warden configuration here
manager.strategies.add(:impersonate_strategy, Devise::Strategies::ImpersonateStrategy)
manager.default_strategies(:scope => :user).unshift :impersonate_strategy
+
+ manager.failure_app = G5Authenticatable::FailureApp
end
# ==> Mountable engine configurations
# When using Devise inside an engine, let's call it `MyEngine`, and this engine