Sha256: 496175fdf8b850d1faa818d2cc4850babb13e99438a0b0d75d45a0749043edef

Contents?: true

Size: 354 Bytes

Versions: 1

Compression:

Stored size: 354 Bytes

Contents

<%#
# BooleanEmoji Index Partial

This partial renders an emoji based on the value of the attribute.

## Local variables:

- `field`:
  An instance of Administrate::Field::BooleanEmoji.
  A wrapper around the attribute pulled from the database.
%>

<% if field.data.present? %>
  <%= field.data ? field.positive_emoji : field.negative_emoji %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
administrate-field-boolean_emoji-0.0.1 app/views/fields/boolean_emoji/_index.html.erb