Update customers_controller.rb

This commit is contained in:
2016-09-02 10:32:58 -04:00
committed by GitHub
parent 3c9316340f
commit 44bc2f47f1

View File

@@ -94,7 +94,7 @@ class CustomersController < ApplicationController
def view
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
if token
render :partial => 'issues/show', locals: {issue: Issue.find token.issue_id}, :flash => {:notice => token.issue_id}
render :partial => "issues/show", locals: {issue: Issue.find token.issue_id}#, :flash => {:notice => token.issue_id}
else
render :file => "public/401.html.erb", :status => :unauthorized, :layout =>true
end