Fix new rubocop warnings
This commit is contained in:
parent
f7e168b8e1
commit
9cd96bd452
7 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue