Closed mrcasals closed 11 years ago
The #update
method is not part of the public API (I'm surprised you're able to call it in the above example, since its visibility is protected
). The method you're looking for is #attributes=
, as in:
product.attributes = product_attributes
product.save
Perfect, thanks! :)
I cannot update an element:
What am I doing wrong, here? :(
I found something that might imply this is an elastictastic bug: the Persistence module has an
update
method, but it does not seem to use the options I send to it:https://github.com/brewster/elastictastic/blob/master/lib/elastictastic/persistence.rb#L54-L56