nccu-news/app/models/department.rb

14 lines
265 B
Ruby
Raw Permalink Normal View History

2014-11-07 08:44:11 +00:00
# encoding: utf-8
class Department
include Mongoid::Document
include Mongoid::Timestamps
2015-09-24 08:06:56 +00:00
include Slug
2014-11-07 08:44:11 +00:00
2015-09-24 08:06:56 +00:00
field :name, as: :slug_title, :localize => true
2014-11-07 08:44:11 +00:00
field :sort_number, :type => Integer
field :should_destroy, :type => Boolean
belongs_to :unit
end