Sha256: 5f59b4c608516542c7521b657b21cb36fb0c5237dfd06e76a31d7d4beb1091ee

Contents?: true

Size: 274 Bytes

Versions: 200

Compression:

Stored size: 274 Bytes

Contents

#Used to ensure encode of UploadedFile for lograge does not dump entire file. 
class ActionDispatch::Http::UploadedFile
  def as_json(options = nil)
    %w(headers).inject({}) do |hash, attr|
      hash[attr] = send(attr).force_encoding('utf-8')
      hash
    end
  end
end

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
zuora_connect-2.0.38 config/initializers/patches.rb
zuora_connect-2.0.36 config/initializers/patches.rb
zuora_connect-2.0.35 config/initializers/patches.rb
zuora_connect-2.0.34 config/initializers/patches.rb
zuora_connect-2.0.33 config/initializers/patches.rb
zuora_connect-2.0.32 config/initializers/patches.rb
zuora_connect-2.0.31 config/initializers/patches.rb
zuora_connect-2.0.30 config/initializers/patches.rb
zuora_connect-2.0.29 config/initializers/patches.rb
zuora_connect-2.0.28 config/initializers/patches.rb
zuora_connect-2.0.27 config/initializers/patches.rb
zuora_connect-2.0.26 config/initializers/patches.rb
zuora_connect-2.0.25 config/initializers/patches.rb
zuora_connect-2.0.24 config/initializers/patches.rb
zuora_connect-2.0.23 config/initializers/patches.rb
zuora_connect-2.0.22 config/initializers/patches.rb
zuora_connect-2.0.21 config/initializers/patches.rb
zuora_connect-2.0.20 config/initializers/patches.rb
zuora_connect-2.0.19 config/initializers/patches.rb
zuora_connect-2.0.18 config/initializers/patches.rb