Update customers_controller.rb

This commit is contained in:
2016-09-03 23:47:05 -04:00
committed by GitHub
parent a197dcdefc
commit 1ed7c6fe63

View File

@@ -107,6 +107,7 @@ class CustomersController < ApplicationController
def view
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
if token.first
User.current = User.find_by_name 'Anonymous'
@issue = Issue.find token.first.issue_id
@journals = @issue.journals.
preload(:details).