set not authenticated to redirect to login

This commit is contained in:
Connor Turland 2012-09-23 21:38:26 -04:00
parent ea7aa9815a
commit f3ee998eee

View file

@ -17,7 +17,7 @@ private
def require_user
unless authenticated?
flash[:warning] = "You must be logged in."
store and redirect_to new_user_path
store and redirect_to new_session_path
return false
end
end