Module: Workbench::TimeHelper

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) object_time_since_creation_tag(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) object_time_since_update_tag(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