Method: Chewy::Search::Parameters::Load#update!

Defined in:
lib/chewy/search/parameters/load.rb

#update!(other_value) ⇒ {Symbol => Object}

Simply merges two value hashes on update

Parameters:

  • other_value ({String, Symbol => Object})

    any acceptable storage value

Returns:

  • ({Symbol => Object})

    updated value

See Also:



17
18
19
# File 'lib/chewy/search/parameters/load.rb', line 17

def update!(other_value)
  value.merge!(normalize(other_value))
end