Sha256: 173912efd41ab45eef23ea24daed00339ba087c6e6c8ec98f23fc028332aa69a

Contents?: true

Size: 504 Bytes

Versions: 14

Compression:

Stored size: 504 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

  embeds_many :edits, validate: false
  has_many :comments, dependent: :destroy, validate: false
  has_many :child_pages, class_name: "WikiPage", dependent: :delete_all, inverse_of: :parent_pages
  belongs_to :parent_pages, class_name: "WikiPage", inverse_of: :child_pages
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
mongoid-7.0.13 spec/app/models/wiki_page.rb
mongoid-7.0.12 spec/app/models/wiki_page.rb
mongoid-7.0.11 spec/app/models/wiki_page.rb
mongoid-7.0.10 spec/app/models/wiki_page.rb
mongoid-7.0.8 spec/app/models/wiki_page.rb
mongoid-7.0.7 spec/app/models/wiki_page.rb
mongoid-7.0.6 spec/app/models/wiki_page.rb
mongoid-7.0.5 spec/app/models/wiki_page.rb
mongoid-7.0.4 spec/app/models/wiki_page.rb
mongoid-7.0.3 spec/app/models/wiki_page.rb
mongoid-7.0.2 spec/app/models/wiki_page.rb
mongoid-7.0.1 spec/app/models/wiki_page.rb
mongoid-7.0.0 spec/app/models/wiki_page.rb
mongoid-7.0.0.beta spec/app/models/wiki_page.rb