Use service_url instead of blob_url on secure attachments

This commit is contained in:
Paul Chavard 2019-12-19 18:15:37 +01:00
parent cccb04d725
commit 785a09b326
4 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ module Types
field :content_type, String, null: false
def url
Rails.application.routes.url_helpers.url_for(object)
object.service_url
end
end
end