From d0f11ce2cf05942e7be291b4a0d926577984dcff Mon Sep 17 00:00:00 2001 From: Paul Rowe-White Date: Wed, 29 Jan 2014 21:18:11 +0000 Subject: [PATCH] Added check for presence of controller name --- 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 72cddfe..180954f 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].include?('sessions') + params[:controller] && params[:controller].include?('sessions') end def valid_params?