Sha256: d6af3a4ab41c0da482c591e983e61ff166df67aa2e357073ec63bb9a0c46d442
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
# Administrate::Field::BooleanEmoji [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-boolean_emoji/badges/gpa.svg)](https://codeclimate.com/github/zooppa/administrate-field-boolean_emoji) [![Build Status](https://semaphoreci.com/api/v1/zooppa/administrate-field-boolean_emoji/branches/master/badge.svg)](https://semaphoreci.com/zooppa/administrate-field-boolean_emoji) A plugin to visually display boolean fields in [Administrate]. ## Usage Add it to your `Gemfile`: ```ruby gem 'administrate-field-boolean_emoji', '~> 0.1.0' ``` Run: ```bash $ bundle install ``` Add to your `FooDashboard`: ```ruby ATTRIBUTE_TYPES = { bar: Field::BooleanEmoji }.freeze ``` ## Customize Customize or overwrite the labels by just adding this to your `config/locales/*.yml`. ```yml administrate: fields: boolean_emoji: 'false': 👎 'true': 👍 ``` ## About `Administrate::Field::BooleanEmoji` is maintained by [zooppa]. [administrate]: https://github.com/thoughtbot/administrate [zooppa]: https://www.zooppa.com/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
administrate-field-boolean_emoji-0.1.0 | README.md |