Update customers_controller.rb

This commit is contained in:
ricky authored and GitHub committed 2016-09-03 23:47:05 -04:00
1 parent a197dcdefc
commit 1ed7c6fe63
1 file changed
+1
+1
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).