Module: Elastictastic::Dirty::NestedDocumentMethods
- Defined in:
- lib/elastictastic/dirty.rb
Instance Attribute Summary collapse
-
#nesting_association ⇒ Object
writeonly
Sets the attribute nesting_association.
-
#nesting_document ⇒ Object
writeonly
Sets the attribute nesting_document.
Instance Method Summary collapse
Instance Attribute Details
#nesting_association=(value) ⇒ Object (writeonly)
Sets the attribute nesting_association
95 96 97 |
# File 'lib/elastictastic/dirty.rb', line 95 def nesting_association=(value) @nesting_association = value end |
#nesting_document=(value) ⇒ Object (writeonly)
Sets the attribute nesting_document
95 96 97 |
# File 'lib/elastictastic/dirty.rb', line 95 def nesting_document=(value) @nesting_document = value end |
Instance Method Details
#attribute_will_change!(field) ⇒ Object
97 98 99 100 101 102 |
# File 'lib/elastictastic/dirty.rb', line 97 def attribute_will_change!(field) super if @nesting_document @nesting_document.__send__("attribute_will_change!", @nesting_association) end end |