lib/hello_sign/client.rb in hellosign-ruby-sdk-3.2.7 vs lib/hello_sign/client.rb in hellosign-ruby-sdk-3.2.8
- old
+ new
@@ -293,9 +293,16 @@
def prepare_signer_roles(opts)
prepare opts, :signer_roles
end
+ def prepare_custom_fields(opts)
+ if (opts[:custom_fields] and opts[:custom_fields].is_a? Array)
+ opts[:custom_fields] = MultiJson.dump(opts[:custom_fields])
+ end
+ #ignore if it's already a string, or not present
+ end
+
def prepare(opts, key)
return unless opts[key]
opts[key].each_with_index do |value, index|
if value.is_a? String
opts[:"#{key}[#{index}]"] = value