Sha256: 0ea21dae146e093be575c7640f417e0b0f97d42f2eca1cb78eb8fc778ea305b6
Contents?: true
Size: 532 Bytes
Versions: 40
Compression:
Stored size: 532 Bytes
Contents
# Methods added to this helper will be available to all templates in the application. module ApplicationHelper def created_at_column(record, b = nil) time_ago_in_words(record.created_at) + "_ago" if record.created_at end def updated_at_column(record, b = nil) #record.updated_at.to_s(:test) time_ago_in_words(record.updated_at) + "_ago" if record.updated_at end def updated_version_column(record, b = nil) time_ago_in_words(record.updated_version) + "_ago" if record.updated_version end end
Version data entries
40 entries across 40 versions & 1 rubygems