Sha256: 18c3a422af09539615509d7f4b132f93231bac32f7b811f0a9426ad1ff40979b

Contents?: true

Size: 142 Bytes

Versions: 5

Compression:

Stored size: 142 Bytes

Contents

module FactValuesHelper

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/helpers/fact_values_helper.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/helpers/fact_values_helper.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/helpers/fact_values_helper.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/helpers/fact_values_helper.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/helpers/fact_values_helper.rb