vendor/bundle/gems/mongoid-2.4.11/lib/mongoid/persistence.rb
# Save the document - will perform an insert if the document is new, and
# update if not. If a validation error occurs an error will get raised.
#
# @example Save the document.
#   document.save!
#
# @param [ Hash ] options Options to pass to the save.
#
# @return [ true, false ] True if validation passed.
Save the document - will perform an insert if the document is new, and
update if not. If a validation error occurs an error will get raised.
Save the document - will perform an insert if the document is new and update if not . If a validation error occurs an error will get raised .
def save!(options = {})
      unless upsert(options)
        self.class.fail_validate!(self) if errors.any?
        self.class.fail_callback!(self, :save!)
      end
      return true
    end
def save! ( options = { } ) unless upsert ( options ) self . class . fail_validate! ( self ) if errors . any? self . class . fail_callback! ( self , :save! ) end return true end
Save the document - will perform an insert if the document is new, and
update if not.
Save the document - will perform an insert if the document is new and update if not .
True if validation passed.
True if validation passed .
 true, false 
options
<not_specific>
<not_specific>
options Options to pass to the save.
options Options to pass to the save .
example
Save the document. document.save!
Save the document . document . save!