README.md in administrate-field-boolean_emoji-0.0.4 vs README.md in administrate-field-boolean_emoji-0.1.0

- old
+ new

@@ -1,17 +1,18 @@ # 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.0.4' +gem 'administrate-field-boolean_emoji', '~> 0.1.0' ``` Run: ```bash @@ -24,11 +25,23 @@ 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 [z.productions]. +`Administrate::Field::BooleanEmoji` is maintained by [zooppa]. -[Administrate]: https://github.com/thoughtbot/administrate -[z.productions]: https://www.z.productions/ +[administrate]: https://github.com/thoughtbot/administrate +[zooppa]: https://www.zooppa.com/