From f1214ab7e64fc7531cb7bf803f4aa9b6c6bf9713 Mon Sep 17 00:00:00 2001 From: Jason Denney Date: Sat, 17 Aug 2013 23:38:07 -0400 Subject: [PATCH] remove hours, created_at, updated_at in bike logs --- app/components/bike_logs.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/components/bike_logs.rb b/app/components/bike_logs.rb index 438e81d..ee7ad73 100644 --- a/app/components/bike_logs.rb +++ b/app/components/bike_logs.rb @@ -19,11 +19,8 @@ class BikeLogs < Netzke::Basepack::Grid c.columns = [ { :name => :start_date, :format => "g:ia - D, M j - Y", :width => 165, :default_value => Time.now.to_formatted_s(:db) }, { :name => :end_date, :hidden => true, :default_value => Time.now.to_formatted_s(:db) }, - { :name => :hours, :getter => lambda { |rec| (rec.end_date - rec.start_date)/3600 }, :sorting_scope => :sort_by_duration}, :description, { :name => :bike_action__action, :text => 'Action'}, - { :name => :created_at, :read_only => true}, - { :name => :updated_at, :read_only => true}, { :name => :logged_by, :getter => lambda{ |rec| user = User.find_by_id(rec.logger_id) user.nil? ? "" : "#{user.first_name} #{user.last_name}"