Sha256: 03f5e10455e1257f766eed9e2eefe92ac8892dcfc8b92fd02998f0b740b9f8d6
Contents?: true
Size: 527 Bytes
Versions: 10
Compression:
Stored size: 527 Bytes
Contents
class WikiPage include Mongoid::Document include Mongoid::Timestamps include Mongoid::Versioning field :title, type: String field :transient_property, type: String, versioned: false 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
10 entries across 10 versions & 2 rubygems