From 8940e72091e5e283fefec7c28368143aa45c7980 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 3 Sep 2016 23:48:54 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 2cc23e1..459dc7b 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -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).