Sha256: dba413639d1a7bce2eb9ef4f3b9a35f4c5b8682477453338dc0d498b7b184177
Contents?: true
Size: 591 Bytes
Versions: 1
Compression:
Stored size: 591 Bytes
Contents
# encoding: utf-8 require "mongoid/persistence/command" require "mongoid/persistence/insert" require "mongoid/persistence/update" module Mongoid #:nodoc: module Persistence #:nodoc: # Insert a new +Document+ into the database. Will return the document # itself whether or not the save was successful. # # Example: # # <tt>document.insert</tt> def insert Insert.new(self).persist end # Update the +Document+ in the datbase. # # Example: # # <tt>document.update</tt> def update Update.new(self).persist end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-pre-2.0.0.beta1 | lib/mongoid/persistence.rb |