Sha256: 3f71ec3f4021d97512bac8ce3daeb93798c3b63d746d282c71a775a4d425d8d4

Contents?: true

Size: 239 Bytes

Versions: 5

Compression:

Stored size: 239 Bytes

Contents

- if options[:label_method].present?
  = resource.send(name).send(options[:label_method])
- else
  - if (value = resource.send(name)).present? && options[:format].present?
    = I18n.l(value, format: options[:format])
  - else
    = value

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/views/component/table/body_cells/_timestamp.haml
rails-add_ons-2.2.1 app/views/component/table/body_cells/_timestamp.haml
rails-add_ons-2.2.0 app/views/component/table/body_cells/_timestamp.haml
rails-add_ons-2.1.1 app/views/component/table/body_cells/_timestamp.haml
rails-add_ons-2.1.0 app/views/component/table/body_cells/_timestamp.haml