lib/gummi/db_layer/document.rb in gummi-0.3.11 vs lib/gummi/db_layer/document.rb in gummi-0.3.12

- old
+ new

@@ -16,9 +16,13 @@ # –––––––––––––––––––––– # Public Persistence API # –––––––––––––––––––––– + def exists?(id) + client.exists index: index.name, type: document_type, id: id + end + def create(*args) instance = new(*args) instance.create ? instance : nil end