Browse Source

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

eperez-timeinput
John N. Milner 12 years ago
parent
commit
adeca0e08a
  1. 4
      app/components/check_ins.rb

4
app/components/check_ins.rb

@ -8,8 +8,8 @@ class CheckIns < Netzke::Basepack::Grid
where("start_date >= ?", Time.zone.now.beginning_of_day); where("start_date >= ?", Time.zone.now.beginning_of_day);
} }
c.columns = [ c.columns = [
{ :name => :logged_by, :getter => lambda{ |rec| { :name => :name, :getter => lambda{ |rec|
user = User.find_by_id(rec.logger_id) user = User.find_by_id(rec.loggable_id)
user.nil? ? "" : "#{user.first_name} #{user.last_name}" user.nil? ? "" : "#{user.first_name} #{user.last_name}"
} }
}, },

Loading…
Cancel
Save