update for model

This commit is contained in:
Harry Bomrah 2015-09-24 16:06:56 +08:00
parent 7615affb38
commit 8d9e335dec
1 changed files with 2 additions and 1 deletions

View File

@ -3,8 +3,9 @@ class Department
include Mongoid::Document include Mongoid::Document
include Mongoid::Timestamps include Mongoid::Timestamps
include Slug
field :name, :localize => true field :name, as: :slug_title, :localize => true
field :sort_number, :type => Integer field :sort_number, :type => Integer
field :should_destroy, :type => Boolean field :should_destroy, :type => Boolean