1
0
Fork 0

Added check for presence of controller name

This commit is contained in:
Paul Rowe-White 2014-01-29 21:18:11 +00:00
parent d501cf8a1e
commit d0f11ce2cf

View file

@ -17,7 +17,7 @@ module Devise
protected protected
def valid_controller? def valid_controller?
params[:controller].include?('sessions') params[:controller] && params[:controller].include?('sessions')
end end
def valid_params? def valid_params?