Update customers_controller.rb

This commit is contained in:
2016-09-03 09:06:52 -04:00
committed by GitHub
parent 1e04b6ae9f
commit a75a784e8d

View File

@@ -106,7 +106,7 @@ class CustomersController < ApplicationController
# Customer view for an issue
def view
token = CustomerToken.where("token = ? and expires_at > ?", params[:token], Time.now)
if token
if token.first
@issue = Issue.find token.first.issue_id
@journals = @issue.journals.
preload(:details).