From 11807f7d6f8a45d29da378694ccdd8d84139e968 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Thu, 11 May 2023 14:47:48 +0530 Subject: [PATCH] feat: use rails_blob_url instead of url_for --- app/controllers/api/v1/accounts/articles_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/accounts/articles_controller.rb b/app/controllers/api/v1/accounts/articles_controller.rb index cc0976375..65210260c 100644 --- a/app/controllers/api/v1/accounts/articles_controller.rb +++ b/app/controllers/api/v1/accounts/articles_controller.rb @@ -45,7 +45,7 @@ class Api::V1::Accounts::ArticlesController < Api::V1::Accounts::BaseController content_type: params[:background_image].content_type ) file_blob.save! - render json: { file_url: url_for(file_blob) } + render json: { file_url: rails_blob_url(file_blob) } end def reorder