Exception: Ripple::NoRootDocument

Inherits:
StandardError
  • Object
show all
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

Methods included from Translation

#i18n_scope

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