Sha256: 1dcaea4c4eae3de8be64b1dea9f77159232005c0bd0f34deaee60e3ac7f574e7

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

<%#
# Enum Show Partial

This partial renders an enum attribute,
to be displayed on a resource's show page.

By default, the attribute is rendered as a text tag.

## Local variables:

- `field`:
  An instance of [Administrate::Field::Enum][1].
  A wrapper around the enum attributes pulled from the model.

%>

<%= I18n.t("activerecord.attributes.#{field.resource.class.name.underscore}.#{field.attribute.to_s.pluralize}.#{field.data}", default: field.to_s) %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-field-enum-0.0.9 app/views/fields/enum/_show.html.erb
administrate-field-enum-0.0.8 app/views/fields/enum/_show.html.erb
administrate-field-enum-0.0.7 app/views/fields/enum/_show.html.erb