No release in over 3 years
Low commit activity in last 3 years
Custom Administrate field boolean_to_yes_no
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0

Runtime

~> 5.0
 Project Readme

Administrate::Field::BooleanToYesNo

A plugin for Administrate

Usage

Add to your Gemfile:

gem 'administrate-field-boolean_to_yes_no'

Run:

$ bundle install

Add to your FooDashboard:

ATTRIBUTE_TYPES = [
  active: Field::BooleanToYesNo
]

Customize

Customize or overwrite the labels by just adding this to your config/locales/*.yml.

administrate:
  fields:
    boolean_to_yes_no:
      'false': "🚫"
      'true': ""