X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c7dc3ee722039067332ac29d3badf32abbce2439..a28f264ad18605f6e95fde7aafe7217335831227:/app/models/notifier.rb 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