Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2022-09-09 22:36:39 +01:00
parent f7e168b8e1
commit 9cd96bd452
7 changed files with 9 additions and 9 deletions

View file

@ -183,7 +183,7 @@ class UserMailer < ApplicationMailer
end
def attach_project_logo
attachments.inline["logo.png"] = File.read(Rails.root.join("app/assets/images/osm_logo_30.png"))
attachments.inline["logo.png"] = Rails.root.join("app/assets/images/osm_logo_30.png").read
end
def attach_user_avatar(user)
@ -199,7 +199,7 @@ class UserMailer < ApplicationMailer
avatar.blob.download
end
else
File.read(Rails.root.join("app/assets/images/avatar_small.png"))
Rails.root.join("app/assets/images/avatar_small.png").read
end
end