update rails to 8.1.2

This commit is contained in:
Alex Turchyn authored and Pete Matsyburka committed 2026-01-26 18:22:47 +02:00
1 parent d12c67fd54
commit 7b5494468f
23 files changed
+1676 -1018

No files matched your search

@@ -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