Sha256: 983031493c2560d07c76dc2936cb06e03332d30aa908038dff93d459061b558b
Contents?: true
Size: 479 Bytes
Versions: 6
Compression:
Stored size: 479 Bytes
Contents
class WikiPage include Mongoid::Document include Mongoid::Timestamps field :title, type: String field :transient_property, type: String field :author, type: String field :description, type: String, localize: true max_versions 5 has_many :comments, dependent: :destroy, validate: false has_many :child_pages, class_name: "WikiPage", dependent: :delete, inverse_of: :parent_pages belongs_to :parent_pages, class_name: "WikiPage", inverse_of: :child_pages end
Version data entries
6 entries across 6 versions & 4 rubygems