sibext / rails_admin_enum4

Rails Admin Rails 4.1 Enum
MIT License
4 stars 1 forks source link

Rails Admin Enum 4

Rails Admin plugin for correct view Rails 4.1 Enum


Installation

gem 'rails_admin_enum4', github: 'sibext/rails_admin_enum4'

bundle install

Usage

Generate new model by generator:

rails g model Sibext service:integer

Execute migration:

rake db:migrate

Add enum to your model:

class Sibext < ActiveRecord::Base
  enum service: [:mobile_development, :web_development, :outsorsing]
end

Execute rails with rails admin

Profit!