mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-06 03:01:21 -04:00
Include configuration for Turbolinks in devise initializer template
This commit is contained in:
committed by
Leonardo Tegon
parent
268bd69164
commit
e44a8b2d43
@@ -280,4 +280,11 @@ Devise.setup do |config|
|
||||
# When using OmniAuth, Devise cannot automatically set OmniAuth path,
|
||||
# so you need to do it manually. For the users scope, it would be:
|
||||
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
||||
|
||||
# ==> Turbolinks configuration
|
||||
# If your app is using Turbolinks, Turbolinks::Controller needs to be included to make redirection work correctly:
|
||||
#
|
||||
# ActiveSupport.on_load(:devise_failure_app)
|
||||
# include Turbolinks::Controller
|
||||
# end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user