Sha256: 1dc6df07211a9b2dc6782e80354d3d73179553ae87235900d630693768405843

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

class Article
  include MongoMapper::Document
  
  key :title, String, :required => true
  key :body, String
  
  many :comments
  many :unknowns
  many :ratings, :class_name => "Rate"
  many :assets
  belongs_to :user
  belongs_to :unknown
  belongs_to :site, :class_name => 'Site'
end

class Comment
  include MongoMapper::EmbeddedDocument
  
  key :body, String
end

class User
  include MongoMapper::Document
  
  key :login, String
end

class Rate
  include MongoMapper::EmbeddedDocument
end

class Rating
  include MongoMapper::EmbeddedDocument
end

class Site
  include MongoMapper::EmbeddedDocument
end

class Webiste
  include MongoMapper::EmbeddedDocument
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yeastymobs-remarkable_mongomapper-0.1.0 spec/models.rb