update rails to 8.1.2

This commit is contained in:
Alex Turchyn
2026-01-26 18:18:07 +02:00
committed by Pete Matsyburka
parent d12c67fd54
commit 7b5494468f
23 changed files with 1676 additions and 1018 deletions
@@ -238,7 +238,7 @@ module Submissions
width = page.box.width
height = page.box.height
preferences_font_size = field.dig('preferences', 'font_size').then { |num| num.present? ? num.to_i : nil }
preferences_font_size = field.dig('preferences', 'font_size').then { |num| num.presence&.to_i }
font_size = preferences_font_size
font_size ||= (([page.box.width, page.box.height].min / A4_SIZE[0].to_f) * FONT_SIZE).to_i