Ruby 3 compatibility fixes

This commit is contained in:
Jyri-Petteri Paloposki 2022-01-03 21:21:05 +02:00
parent 916ec5121d
commit 01e09f8708
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ module RenderingHelper
# do not change string; URL is already linked
href
else
content_tag(:a, h(href), :href => URI.escape(href))
content_tag(:a, h(href), :href => href)
end
end
end

View file

@ -26,7 +26,7 @@ class MessageGateway < ActionMailer::Base
attachment = todo.attachments.build
# create temp file
tmp = Tempfile.new(['attachment', '.eml'], { universal_newline: true })
tmp = Tempfile.new(['attachment', '.eml'], universal_newline: true)
tmp.write email.raw_source.gsub(/\r/, "")
# add temp file to attachment. paperclip will copy the file to the right location