Class: Mongoid::Atomic::Paths::Root
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/mongoid/atomic/paths/root.rb |
Overview
This class encapsulates behavior for locating and updating root documents atomically.
Class Method Summary
-
.new(document) ⇒ Root
constructor
Create the new root path utility.
Instance Attribute Summary
Instance Method Summary
-
#insert_modifier
Asking for the insert modifier on a document with a root path indicates a mixed association most likely happened.
Constructor Details
.new(document) ⇒ Root
Create the new root path utility.
Instance Attribute Details
#document (readonly)
[ GitHub ]#path (readonly)
[ GitHub ]#position (readonly)
[ GitHub ]Instance Method Details
#insert_modifier
Asking for the insert modifier on a document with a root path indicates a mixed association most likely happened.
# File 'lib/mongoid/atomic/paths/root.rb', line 31
def insert_modifier raise Errors::InvalidPath.new(document.class) end