From adeca0e08a16eb00af05c0fdb5478fc131b00a06 Mon Sep 17 00:00:00 2001 From: "John N. Milner" Date: Thu, 30 May 2013 19:30:40 -0400 Subject: [PATCH] Corrected Check Ins view to show the checked-in user, not the user who logged the check in --- app/components/check_ins.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/check_ins.rb b/app/components/check_ins.rb index 2320b77..4763c7e 100644 --- a/app/components/check_ins.rb +++ b/app/components/check_ins.rb @@ -8,8 +8,8 @@ class CheckIns < Netzke::Basepack::Grid where("start_date >= ?", Time.zone.now.beginning_of_day); } c.columns = [ - { :name => :logged_by, :getter => lambda{ |rec| - user = User.find_by_id(rec.logger_id) + { :name => :name, :getter => lambda{ |rec| + user = User.find_by_id(rec.loggable_id) user.nil? ? "" : "#{user.first_name} #{user.last_name}" } },