Skip to content

sibext/rails_admin_enum4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Rails Admin Rails 4.1 Enum

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published