Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
fixes #14 modified flash to a flash.now so the flash notification wou…
Browse files Browse the repository at this point in the history
…ld only show on one page refresh and would not show on successful login
  • Loading branch information
zeknox committed Oct 24, 2015
1 parent 91a3346 commit ab60705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def current_user
def require_user
unless current_user
store_location
flash[:notice] = "You must be logged in to access this page"
flash.now[:notice] = "You must be logged in to access this page"
redirect_to '/login'
return false
end
Expand Down

0 comments on commit ab60705

Please sign in to comment.