lib/ribose/space_file.rb in ribose-0.4.1 vs lib/ribose/space_file.rb in ribose-0.5.0
- old
+ new
@@ -55,10 +55,10 @@
# @param file [String] The complete path for the file
# @param attributes [Hash] The file attributes as Hash
# @return [Sawyer::Resource] The file upload response.
#
def self.create(space_id, file:, **attributes)
- upload = FileUploader.upload(space_id, attributes.merge(file: file))
+ upload = FileUploader.upload(space_id, **attributes.merge(file: file))
upload[:attachment]
end
# Update a space file
#