]> git.openstreetmap.org Git - rails.git/commitdiff
Fix rubocop warnings
authorTom Hughes <tom@compton.nu>
Sun, 5 Feb 2017 14:33:48 +0000 (14:33 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Feb 2017 14:33:48 +0000 (14:33 +0000)
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