Update auth_helper.rb

This commit is contained in:
2016-09-02 00:24:59 -04:00
committed by GitHub
parent 5a10065bb0
commit f14e82a01b

View File

@@ -16,8 +16,7 @@ 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}
:flash => {:notice => token.issue_id}
end end
else else
if !User.current.logged? if !User.current.logged?