Orbit/app/models/user/status.rb

14 lines
220 B
Ruby
Raw Permalink Normal View History

2012-09-13 10:39:27 +00:00
class Status
include Mongoid::Document
include Mongoid::Timestamps
2012-09-17 04:06:21 +00:00
has_and_belongs_to_many :users
field :key
2012-09-13 10:39:27 +00:00
belongs_to :role
2012-09-17 04:06:21 +00:00
# has_and_belongs_to_many :sub_roles
2012-09-13 10:39:27 +00:00
field :title, localize: true
end