From 317760c5ad405795a0c019ec7dba801d5b6b5d77 Mon Sep 17 00:00:00 2001 From: George Claghorn Date: Thu, 5 Dec 2019 19:40:47 -0500 Subject: [PATCH] Use ActiveStorage::Preview#url instead of deprecated #service_url --- .../controllers/active_storage/representations_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activestorage/app/controllers/active_storage/representations_controller.rb b/activestorage/app/controllers/active_storage/representations_controller.rb index 98e11e5dbbce9..82141d0fe6da2 100644 --- a/activestorage/app/controllers/active_storage/representations_controller.rb +++ b/activestorage/app/controllers/active_storage/representations_controller.rb @@ -9,6 +9,6 @@ class ActiveStorage::RepresentationsController < ActiveStorage::BaseController def show expires_in ActiveStorage.service_urls_expire_in - redirect_to @blob.representation(params[:variation_key]).processed.service_url(disposition: params[:disposition]) + redirect_to @blob.representation(params[:variation_key]).processed.url(disposition: params[:disposition]) end end