Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Sep 26, 2023
1 parent 4610d08 commit ad7f0e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/initializers/file_length_patch.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Valkyrie::Storage::Fedora expects io objects to have #length
class ::File
alias_method :length, :size unless ::File.respond_to? :length
end

0 comments on commit ad7f0e0

Please sign in to comment.