Sha256: dc46a0958cfa64b0cd23c508491a8d532d2f3425161fca3d58fe608bb303d474

Contents?: true

Size: 255 Bytes

Versions: 8

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

# Valkyrie::Storage::Fedora expects io objects to have #length
class ::File
  alias length size unless respond_to? :length
end

class ::Valkyrie::StorageAdapter::StreamFile
  alias length size unless respond_to? :length
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hyrax-5.1.0.pre.beta1 config/initializers/file_length_patch.rb
hyrax-5.0.4 config/initializers/file_length_patch.rb
hyrax-5.0.3 config/initializers/file_length_patch.rb
hyrax-5.0.2 config/initializers/file_length_patch.rb
hyrax-5.0.1 config/initializers/file_length_patch.rb
hyrax-5.0.0 config/initializers/file_length_patch.rb
hyrax-5.0.0.rc3 config/initializers/file_length_patch.rb
hyrax-5.0.0.rc2 config/initializers/file_length_patch.rb