end
def attach_project_logo
- attachments.inline["logo.png"] = File.read(Rails.root.join("app/assets/images/osm_logo_30.png"))
+ attachments.inline["logo.png"] = Rails.root.join("app/assets/images/osm_logo_30.png").read
end
def attach_user_avatar(user)
avatar.blob.download
end
else
- File.read(Rails.root.join("app/assets/images/avatar_small.png"))
+ Rails.root.join("app/assets/images/avatar_small.png").read
end
end