Update auth_helper.rb

This commit is contained in:
2016-09-02 00:23:49 -04:00
committed by GitHub
parent fb801e9260
commit 5a10065bb0

View File

@@ -16,7 +16,8 @@ module AuthHelper
if token.nil? if token.nil?
redirect_to :back, :flash => {:error => "Bad link"} redirect_to :back, :flash => {:error => "Bad link"}
else else
render :partial => 'issues/show', locals: {issue: Issue.find token.issue_id} #render :partial => 'issues/show', locals: {issue: Issue.find token.issue_id}
:flash => {:notice => token.issue_id}
end end
else else
if !User.current.logged? if !User.current.logged?