Include configuration for Turbolinks in devise initializer template

This commit is contained in:
Wolfram Nikolas Müller
2018-03-25 13:37:42 +02:00
committed by Leonardo Tegon
parent 268bd69164
commit e44a8b2d43

View File

@@ -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