Sha256: bd56148ce38810a9c08cd81523eebf9a24d46c055f6ab7872677593c79de2cdb

Contents?: true

Size: 167 Bytes

Versions: 13

Compression:

Stored size: 167 Bytes

Contents

# Fixes encoding error when converting uploaded file to JSON
# https://github.com/rails/rails/issues/25250
class Tempfile
  def as_json(_any = nil)
    to_s
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
loga-2.8.1 lib/loga/ext/core/tempfile.rb
loga-2.8.0 lib/loga/ext/core/tempfile.rb
loga-2.7.0 lib/loga/ext/core/tempfile.rb
loga-2.6.1 lib/loga/ext/core/tempfile.rb
loga-2.6.0 lib/loga/ext/core/tempfile.rb
loga-2.5.4 lib/loga/ext/core/tempfile.rb
loga-2.5.3 lib/loga/ext/core/tempfile.rb
loga-2.5.2 lib/loga/ext/core/tempfile.rb
loga-2.5.1 lib/loga/ext/core/tempfile.rb
loga-2.5.0 lib/loga/ext/core/tempfile.rb
loga-2.4.0 lib/loga/ext/core/tempfile.rb
loga-2.3.1 lib/loga/ext/core/tempfile.rb
loga-2.3.0 lib/loga/ext/core/tempfile.rb