fix(timestamp spec): rewind io after before_save check

This commit is contained in:
simon lehericey 2022-12-06 15:57:04 +01:00 committed by Paul Chavard
parent de2c5c69be
commit 86cda6a0b9

View file

@ -109,7 +109,9 @@ class BillSignature < ApplicationRecord
io = io_for_changes(attachment_changes[attachment])
if io.present?
io.rewind
io.read
result = io.read
io.rewind
result
end
elsif serialized.attached?
serialized.download