Skip to content

Commit

Permalink
Fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Feb 5, 2017
1 parent c7dc3ee commit a28f264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/notifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def set_shared_template_vars
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)
Expand All @@ -207,7 +207,7 @@ def user_avatar_file_path(user)
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

Expand Down

0 comments on commit a28f264

Please sign in to comment.