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.17 config/initializers/patches.rb
zuora_connect-2.0.16 config/initializers/patches.rb
zuora_connect-2.0.15 config/initializers/patches.rb
zuora_connect-2.0.14 config/initializers/patches.rb
zuora_connect-2.0.13 config/initializers/patches.rb
zuora_connect-2.0.12 config/initializers/patches.rb
zuora_connect-2.0.11 config/initializers/patches.rb
zuora_connect-2.0.10 config/initializers/patches.rb
zuora_connect-2.0.9 config/initializers/patches.rb
zuora_connect-2.0.8 config/initializers/patches.rb
zuora_connect-2.0.5zj config/initializers/patches.rb
zuora_connect-2.0.5zi config/initializers/patches.rb
zuora_connect-2.0.5zh config/initializers/patches.rb
zuora_connect-2.0.5zg config/initializers/patches.rb
zuora_connect-2.0.5ze config/initializers/patches.rb
zuora_connect-2.0.5zd config/initializers/patches.rb
zuora_connect-2.0.5zc config/initializers/patches.rb
zuora_connect-2.0.5zb config/initializers/patches.rb
zuora_connect-2.0.5za config/initializers/patches.rb
zuora_connect-2.0.5zz config/initializers/patches.rb