Sha256: c23ab042f46378ce73c12279b96db5bedf9ed1362c57234ce2a797330af79601

Contents?: true

Size: 328 Bytes

Versions: 3

Compression:

Stored size: 328 Bytes

Contents

class Comment
  include Mongoid::Document

  field :title, type: String
  field :text, type: String

  # belongs_to :account
  # belongs_to :movie
  # belongs_to :rating
  belongs_to :wiki_page

  belongs_to :commentable, polymorphic: true

  validates :title, presence: true
  # validates :movie, :rating, associated: true
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-versioning-2.0.0 spec/app/models/comment.rb
mongoid-versioning-1.2.0 spec/app/models/comment.rb
mongoid-versioning-1.1.0 spec/app/models/comment.rb