Update customers_controller.rb

This commit is contained in:
2016-09-03 23:48:54 -04:00
committed by GitHub
parent 1ed7c6fe63
commit 8940e72091

View File

@@ -107,7 +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'
User.current = User.find_by name: 'Anonymous'
@issue = Issue.find token.first.issue_id
@journals = @issue.journals.
preload(:details).