From 05af92c285cacb6c0cf8b6f32c5f777285e0f3de Mon Sep 17 00:00:00 2001 From: Guillaume Dott Date: Fri, 26 Aug 2016 10:32:27 +0200 Subject: [PATCH] Send an envelope if status is nil --- lib/docurest/envelope.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docurest/envelope.rb b/lib/docurest/envelope.rb index d74b6e1..3eeec6d 100644 --- a/lib/docurest/envelope.rb +++ b/lib/docurest/envelope.rb @@ -66,7 +66,7 @@ module Docurest end def fire - return unless status == 'created' + return unless status.nil? || status == 'created' if persisted? Docurest.client.put "/envelopes/#{guid}", {status: :sent}