Sha256: ba0b1a213e53251098e9e7547ec634112d3048d8200e51add4ec12de9e119ef5
Contents?: true
Size: 1.15 KB
Versions: 1
Compression:
Stored size: 1.15 KB
Contents
# Administrate::Field::BooleanEmoji [![Build Status](https://travis-ci.com/zooppa/administrate-field-boolean_emoji.svg?branch=master)](https://travis-ci.com/zooppa/administrate-field-boolean_emoji) [![Code Climate](https://codeclimate.com/github/zooppa/administrate-field-boolean_emoji/badges/gpa.svg)](https://codeclimate.com/github/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.2.1' ``` 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]. See also the list of [contributors](https://github.com/zooppa/administrate-field-boolean_emoji/contributors) who participated in this project. [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.2.1 | README.md |