Skip to content

Commit 771a00b

Browse files
committed
allow passing of filename to Upload from Attachment
1 parent a329bed commit 771a00b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zendesk_api/resources/misc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def initialize(client, attributes)
3434
end
3535

3636
def save
37-
upload = Upload.create!(@client, :file => file)
37+
upload = Upload.create!(@client, attributes)
3838
self.token = upload.token
3939
end
4040

0 commit comments

Comments
 (0)