From 9f7c709ea3958722b3bffcb0e3ae1470ebd471d3 Mon Sep 17 00:00:00 2001 From: Mattia Roccoberton Date: Sat, 14 Mar 2026 21:19:38 +0100 Subject: [PATCH] fix: Convert to integer chunk size env --- lib/active_storage/service/db_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_storage/service/db_service.rb b/lib/active_storage/service/db_service.rb index 92677dd..c86ade6 100644 --- a/lib/active_storage/service/db_service.rb +++ b/lib/active_storage/service/db_service.rb @@ -19,7 +19,7 @@ class Service::DBService < Service # :nocov: def initialize(public: false, **) - @chunk_size = ENV.fetch("ASDB_CHUNK_SIZE") { 1.megabytes } + @chunk_size = ENV.fetch("ASDB_CHUNK_SIZE") { 1.megabytes }.to_i @public = public end