This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 9a5a6f0 Last argument as keyword parameters is deprecated
9a5a6f0 is described below
commit 9a5a6f03407e55fca982002ef6dbeafee6e856e0
Author: Sebb <[email protected]>
AuthorDate: Mon Oct 5 11:19:41 2020 +0100
Last argument as keyword parameters is deprecated
---
www/secretary/workbench/models/attachment.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/secretary/workbench/models/attachment.rb
b/www/secretary/workbench/models/attachment.rb
index a1fdcb5..17738c3 100644
--- a/www/secretary/workbench/models/attachment.rb
+++ b/www/secretary/workbench/models/attachment.rb
@@ -45,7 +45,7 @@ class Attachment
# writes the attachment to the specified pathname, which must not exist
def write_path(path)
- File.open(path, File::WRONLY|File::CREAT|File::EXCL, {encoding:
Encoding::BINARY}) do |file|
+ File.open(path, File::WRONLY|File::CREAT|File::EXCL, encoding:
Encoding::BINARY) do |file|
file.write body
end
end