Sha256: 63d950196c501aa74496b177f1118ee81dfd0dfe5363137ac0703f6bc1ede92d
Contents?: true
Size: 511 Bytes
Versions: 2
Compression:
Stored size: 511 Bytes
Contents
module Admin::Resources::DataTypes::DatetimeHelper def table_datetime_field(attribute, item) if field = item.send(attribute) I18n.localize(field, :format => item.class.typus_date_format(attribute)) end end alias :table_date_field :table_datetime_field alias :table_time_field :table_datetime_field alias :table_timestamp_field :table_datetime_field def display_datetime(item, attribute) I18n.l(item.send(attribute), :format => @resource.typus_date_format(attribute)) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typus-3.1.0.rc8 | app/helpers/admin/resources/data_types/datetime_helper.rb |
typus-3.1.0.rc7 | app/helpers/admin/resources/data_types/datetime_helper.rb |