Project

General

Profile

« Previous | Next » 

Revision 5d264a2d

Added by Ohad Levy over 12 years ago

  • ID 5d264a2db100fd1ba7c505697076c4072698b094

refactor - various facts cleanups

View differences:

app/helpers/fact_values_helper.rb
module FactValuesHelper
def fact_from record
time_ago_in_words(Time.parse(@timestamps.select{|fv| fv.host_id == record.host_id}.first.value).utc) + " ago"
time_ago_in_words(record.host.last_compile) + " ago"
rescue
"N/A"
end

Also available in: Unified diff