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