]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/notifier.rb
Fix rubocop warnings
[rails.git] / app / models / notifier.rb
index 0ed7071ac770ebb6d60a7ccf09abce56ed84d8ca..1eb39e67844a8b2295f343284030d7b75c303f40 100644 (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