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

Runtime

>= 4.2, < 7.0
 Project Readme

administrate-field-enumerate

A plugin to show enumerate_it attributes in Administrate.

Installation

Add to Gemfile:

gem 'administrate-field-enumerate'

In your terminal execute:

$ bundle install

Usage example

# app/enumerations/role_type.rb
class RoleType < EnumerateIt::Base
  associate_values(
    :contributor,
    :editor,
    :admin,
    :super_admin 
  )
end

# app/dashboards/user_dashboard.rb
ATTRIBUTE_TYPES = {
  ...
  role: Field::Enumerate
  ...
}

Contributing

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

License

MIT License