Fix rubocop warnings

This commit is contained in:
Tom Hughes 2017-02-05 14:33:48 +00:00
parent c7dc3ee722
commit a28f264ad1

View file

@ -195,7 +195,7 @@ class Notifier < ActionMailer::Base
end
def attach_project_logo
attachments.inline["logo.png"] = File.read("#{Rails.root}/app/assets/images/osm_logo_30.png")
attachments.inline["logo.png"] = File.read(Rails.root.join("app", "assets", "images", "osm_logo_30.png"))
end
def attach_user_avatar(user)
@ -207,7 +207,7 @@ class Notifier < ActionMailer::Base
if image && image.file?
return image.path(:small)
else
return "#{Rails.root}/app/assets/images/users/images/small.png"
return Rails.root.join("app", "assets", "images", "users", "images", "small.png")
end
end