From b335de2cb7e7f7bdb9a716280c1be356e56afe78 Mon Sep 17 00:00:00 2001 From: Paul Rowe-White Date: Sun, 26 Jan 2014 16:18:47 +0000 Subject: [PATCH] Added support for custom session controllers --- lib/devise_kerberos_authenticatable/strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devise_kerberos_authenticatable/strategy.rb b/lib/devise_kerberos_authenticatable/strategy.rb index 6da4eaa..72cddfe 100644 --- a/lib/devise_kerberos_authenticatable/strategy.rb +++ b/lib/devise_kerberos_authenticatable/strategy.rb @@ -17,7 +17,7 @@ module Devise protected def valid_controller? - params[:controller] == 'devise/sessions' + params[:controller].include?('sessions') end def valid_params?