Sha256: 69fe7a6b908ee19fada5ee1499a7ca07d4e74039b5f8a4a1c17fa5fb7c8eed98
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 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::Document end class Webiste include MongoMapper::EmbeddedDocument end class Unknown include MongoMapper::Document end class Asset include MongoMapper::Document end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remarkable_mongo-0.1.4 | spec/models.rb |
remarkable_mongo-0.1.3 | spec/models.rb |