From 2982ca3baafe9565c3ddf47f15bba0151da4c8ab Mon Sep 17 00:00:00 2001 From: f Date: Wed, 18 Dec 2024 11:36:58 -0300 Subject: [PATCH] fix: fallar si no se encuentra el sitio #17889 --- app/controllers/active_storage/disk_controller_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/active_storage/disk_controller_decorator.rb b/app/controllers/active_storage/disk_controller_decorator.rb index ec3ac0b4..2df9e11c 100644 --- a/app/controllers/active_storage/disk_controller_decorator.rb +++ b/app/controllers/active_storage/disk_controller_decorator.rb @@ -24,7 +24,7 @@ module ActiveStorage if (token = decode_verified_token) if acceptable_content?(token) blob = ActiveStorage::Blob.find_by_key! token[:key] - site = Site.find_by_name token[:service_name] + site = Site.find_by_name! token[:service_name] if remote_file?(token) begin