Skip to content

Commit

Permalink
Fixing session controllers when within namespaces
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
lucasmncastro authored and josevalim committed Mar 3, 2010
1 parent a022024 commit 5d187ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise/strategies/authenticatable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def authenticate!
protected

def valid_controller?
params[:controller] == 'sessions'
params[:controller] =~ /sessions$/
end

def valid_params?
Expand Down

0 comments on commit 5d187ff

Please sign in to comment.