From a28f264ad18605f6e95fde7aafe7217335831227 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 5 Feb 2017 14:33:48 +0000 Subject: [PATCH] Fix rubocop warnings --- app/models/notifier.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/notifier.rb b/app/models/notifier.rb index 0ed7071ac..1eb39e678 100644 --- a/app/models/notifier.rb +++ b/app/models/notifier.rb @@ -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 -- 2.43.2