Module: Workbench::TimeHelper

Defined in:
app/helpers/workbench/time_helper.rb

Instance Method Summary collapse

Instance Method Details

#object_time_since_creation_tag(object) ⇒ Object



2
3
4
# File 'app/helpers/workbench/time_helper.rb', line 2

def object_time_since_creation_tag(object)
  time_ago_in_words(object.created_at)
end

#object_time_since_update_tag(object) ⇒ Object



6
7
8
# File 'app/helpers/workbench/time_helper.rb', line 6

def object_time_since_update_tag(object)
  time_ago_in_words(object.updated_at)
end