update rails to 8.1.2
This commit is contained in:
committed by
Pete Matsyburka
parent
d12c67fd54
commit
7b5494468f
+1
-3
@@ -364,9 +364,7 @@ class Pdfium
|
||||
@closed
|
||||
end
|
||||
|
||||
def form_handle
|
||||
@document.form_handle
|
||||
end
|
||||
delegate :form_handle, to: :@document
|
||||
|
||||
def ensure_not_closed!
|
||||
raise PdfiumError, 'Page is closed.' if closed?
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -35,7 +35,7 @@ module Submissions
|
||||
conn = Faraday.new(uri.origin) do |c|
|
||||
c.options.read_timeout = TIMEOUT
|
||||
c.options.open_timeout = TIMEOUT
|
||||
c.basic_auth(uri.user, uri.password) if uri.password.present?
|
||||
c.request :authorization, :basic, uri.user, uri.password if uri.password.present?
|
||||
end
|
||||
|
||||
response = conn.post(uri.request_uri, build_payload(digest.digest),
|
||||
|
||||
Reference in New Issue
Block a user