Sha256: 25ecbf35f5e907a5408d12c701c43b9e9067f4b8bd9af4f0d8eea789749f9547
Contents?: true
Size: 293 Bytes
Versions: 21
Compression:
Stored size: 293 Bytes
Contents
# frozen_string_literal: true module GoodJob module ApplicationHelper def relative_time(timestamp) text = timestamp.future? ? "in #{time_ago_in_words(timestamp)}" : "#{time_ago_in_words(timestamp)} ago" tag.time(text, datetime: timestamp, title: timestamp) end end end
Version data entries
21 entries across 21 versions & 1 rubygems