fix(timestamp spec): rewind io after before_save check
This commit is contained in:
parent
de2c5c69be
commit
86cda6a0b9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue