Sha256: 6dcd7a0f0308141b7feec6d9be5bba18455442472f00ceeaeb2ca1c9d189beab
Contents?: true
Size: 354 Bytes
Versions: 48
Compression:
Stored size: 354 Bytes
Contents
module Para module AttributeField class DatetimeField < AttributeField::Base register :datetime, :date, self field_option :wrapper, :wrapper_name def value_for(instance) (value = instance.send(name)) && ::I18n.l(value, format: :admin) end def wrapper_name :vertical_form end end end end
Version data entries
48 entries across 48 versions & 1 rubygems