Exception: Ripple::NoRootDocument
- Includes:
- Translation
- Defined in:
- lib/ripple/embedded_document/persistence.rb
Overview
Exception raised when save is called on an EmbeddedDocument that is not attached to a root Document.
Instance Method Summary collapse
-
#initialize(doc, method) ⇒ NoRootDocument
constructor
A new instance of NoRootDocument.
Methods included from Translation
Constructor Details
#initialize(doc, method) ⇒ NoRootDocument
Returns a new instance of NoRootDocument.
9 10 11 |
# File 'lib/ripple/embedded_document/persistence.rb', line 9 def initialize(doc, method) super(t("no_root_document", :doc => doc.inspect, :method => method)) end |