Sha256: 5459338893f8363699244ad72c4b45f01f39625f2f16212f75a65838185e978e
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
MongoModel ========== MongoModel is a Ruby ORM for interfacing with [MongoDB](http://www.mongodb.org/) databases. Installation ============ MongoModel is distributed as a gem. Install with: gem install mongomodel Sample Usage ============ require 'mongomodel' MongoModel.configuration = { 'host' => 'localhost', 'database' => 'mydb' } class Article < MongoModel::Document property :title, String, :default => 'Untitled' property :body, String property :published_at, Time, :protected => true property :approved, Boolean, :default => false, :protected => true timestamps! validates_presence_of :title, :body belongs_to :author, :class => User end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
mongomodel-0.1.6 | README.md |
mongomodel-0.1.5 | README.md |
mongomodel-0.1.4 | README.md |
mongomodel-0.1.3 | README.md |
mongomodel-0.1.1 | README.md |
mongomodel-0.1 | README.md |