Sha256: f48d69a6be6543f66a2219df3c622cd3fe97782130e6c081550c24a867c2cc09
Contents?: true
Size: 229 Bytes
Versions: 4
Compression:
Stored size: 229 Bytes
Contents
module TimeagoHelper def timeago(time, options = {}) time = time.to_time if time.is_a? String options[:class] ||= 'timeago' content_tag(:abbr, time.to_s, options.merge(title: time.getutc.iso8601)) if time end end
Version data entries
4 entries across 4 versions & 1 rubygems