Sha256: bd35de94545165837b68b2e1627b5706f0a3dccdd5fd7ff658d0039b44843554
Contents?: true
Size: 401 Bytes
Versions: 1
Compression:
Stored size: 401 Bytes
Contents
# -*- encoding : utf-8 -*- # not needed here, since this is only used in the views InlineForms::SPECIAL_COLUMN_TYPES[:info]=:string def info_show(object, attribute) o = object.send attribute.to_sym o = o.to_s + " (" + distance_of_time_in_words_to_now(o) + " ago )" if o.is_a?(Time) o end #def info_edit(object, attribute) # object[attribute] #end # #def info_update(object, attribute) #end #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_forms-1.4.3 | lib/app/helpers/form_elements/info.rb |