Added check for presence of controller name
This commit is contained in:
parent
d501cf8a1e
commit
d0f11ce2cf
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||||
|
|
Loading…
Reference in a new issue