Update customers_controller.rb

This commit is contained in:
2016-09-16 23:06:20 -04:00
committed by GitHub
parent 5209315236
commit f3e9b58c87

View File

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