1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00

Corrected Check Ins view to show the checked-in user, not the user who logged the check in

This commit is contained in:
John N. Milner 2013-05-30 19:30:40 -04:00
parent b67062fb32
commit adeca0e08a

View File

@ -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}"
}
},