Skip to content

Commit

Permalink
Use ActiveStorage::Preview#url instead of deprecated #service_url
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeclaghorn committed Dec 6, 2019
1 parent 6f45307 commit 317760c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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

0 comments on commit 317760c

Please sign in to comment.