We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e534c commit 1c4a72eCopy full SHA for 1c4a72e
elasticsearch-persistence/lib/elasticsearch/persistence/model/store.rb
@@ -99,6 +99,7 @@ def destroy(options={})
99
# @return [Hash] The Elasticsearch response as a Hash
100
#
101
def update(attributes={}, options={})
102
+ return false unless valid?
103
raise DocumentNotPersisted, "Object not persisted: #{self.inspect}" unless persisted?
104
105
run_callbacks :update do
0 commit comments