Skip to content

A plugin to show enum attributes within Administrate.

License

Notifications You must be signed in to change notification settings

valiot/administrate-field-enum

Repository files navigation

AdministrateFieldEnum

Gem

A plugin to show enum attributes in [Administrate].

Installation

Add this line to your application's Gemfile:

gem 'administrate-field-enum'

And then execute:

$ bundle install

Usage

In your Dashboard ATTRIBUTE_TYPES use the field type Field::Enum. i.e.

ATTRIBUTE_TYPES = {
  category: Field::Enum
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/DisruptiveAngels/administrate-field-enum.

License

MIT License