def changeset_comment_notification(comment, recipient)
with_recipient_locale recipient do
+ @to_user = recipient.display_name
@changeset_url = changeset_url(comment.changeset, :host => SERVER_URL)
@comment = comment.body
@owner = recipient == comment.changeset.user
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)
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