lib/property/parse_file.rb in dm-parse-0.3.12 vs lib/property/parse_file.rb in dm-parse-0.3.13

- old
+ new

@@ -22,11 +22,13 @@ filename = value.original_filename content = value.read content_type = value.content_type response = adapter.upload_file(filename, content, content_type) URI(response["url"]) - elsif value.is_a?(Hash) + elsif value.is_a?(::Hash) URI(value["url"]) + elsif value.is_a?(::String) + URI(value) end end end