Sha256: 97813e249ed121cad096dc641b0a7ceb2c69139c77b9b0dbea03ea74241f5ccf
Contents?: true
Size: 288 Bytes
Versions: 10
Compression:
Stored size: 288 Bytes
Contents
module TimeHelper def friendly_time(time, t_key = nil) friendly_time = time_ago_in_words time friendly_time_t = t_key ? t(t_key, time: friendly_time) : friendly_time <<~HTML.html_safe <time title="#{time}"> #{friendly_time_t} </time> HTML end end
Version data entries
10 entries across 10 versions & 1 rubygems