Module: Elastictastic::Dirty::NestedDocumentMethods

Defined in:
lib/elastictastic/dirty.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nesting_association=(value) ⇒ Object (writeonly)

Sets the attribute nesting_association

Parameters:

  • value —

    the value to set the attribute nesting_association to.



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

Parameters:

  • value —

    the value to set the attribute nesting_document to.



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