pagecontent/app/models/wiki_page.rb

13 lines
278 B
Ruby
Raw Permalink Normal View History

2016-08-24 13:28:22 +00:00
class WikiPage
include Mongoid::Document
include Mongoid::Timestamps
include OrbitModel::Impression
include Slug
field :update_user_id
field :view_count, :type => Integer, :default => 0
field :content, localize: true
field :title, localize: true
belongs_to :page
end