Skip to content

Commit

Permalink
Merge pull request #13 from dramirezCL/patch-1
Browse files Browse the repository at this point in the history
Edited app/controllers/sessions_controller.rb via GitHub
  • Loading branch information
pcantrell committed Jun 29, 2011
2 parents b9449c5 + 3bd818a commit 02d3b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/sessions_controller.rb
Expand Up @@ -89,15 +89,15 @@ def destroy
cookies.delete :auth_token
reset_session
flash[:info] = "You are now logged out. Thanks for using #{SHORT_SITE_NAME}!"
redirect_back_or_default('/')
redirect_back_or_default root_path
end

private

def response_for_successful_login
redirect_back_or_default do
if current_user.active?
redirect_to '/'
redirect_to root_path
else
render :action => 'inactive'
end
Expand Down

0 comments on commit 02d3b05

Please sign in to comment.