Send an envelope if status is nil

This commit is contained in:
Guillaume Dott 2016-08-26 10:32:27 +02:00
parent 4b50c0fcfd
commit 05af92c285

View File

@ -66,7 +66,7 @@ module Docurest
end end
def fire def fire
return unless status == 'created' return unless status.nil? || status == 'created'
if persisted? if persisted?
Docurest.client.put "/envelopes/#{guid}", {status: :sent} Docurest.client.put "/envelopes/#{guid}", {status: :sent}