Module: FactValuesHelper

Defined in:
app/helpers/fact_values_helper.rb

Instance Method Summary collapse

Instance Method Details

#fact_from(record) ⇒ Object


3
4
5
6
7
# File 'app/helpers/fact_values_helper.rb', line 3

def fact_from record
  _("%s ago") % time_ago_in_words(record.host.last_compile)
rescue
  _("N/A")
end