A plugin for Administrate
Add to your Gemfile
:
gem 'administrate-field-boolean_to_yes_no'
Run:
$ bundle install
Add to your FooDashboard
:
ATTRIBUTE_TYPES = [
active: Field::BooleanToYesNo
]
Customize or overwrite the labels by just adding this to your config/locales/*.yml
.
administrate:
fields:
boolean_to_yes_no:
'false': "🚫"
'true': "✅"