lib/pupa/processor/connection_adapters/postgresql_adapter.rb in pupa-0.1.11 vs lib/pupa/processor/connection_adapters/postgresql_adapter.rb in pupa-0.2.0
- old
+ new
@@ -69,10 +69,10 @@
[true, object._id.to_s]
end
end
when 1
# Make the document available to the callbacks.
- # @see https://github.com/opennorth/pupa-ruby/issues/17
+ # @see https://github.com/jpmckinney/pupa-ruby/issues/17
object.document = stringify_keys(query.first)
object.run_callbacks(:save) do
query.update(object.to_h(persist: true).except(:_id))
[false, object.document['_id'].to_s]
end