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-3.1.3 config/initializers/patches.rb
zuora_connect-3.1.2.pre.a config/initializers/patches.rb
zuora_connect-3.1.2 config/initializers/patches.rb
zuora_connect-3.1.1.pre.c config/initializers/patches.rb
zuora_connect-3.1.1.pre.b config/initializers/patches.rb
zuora_connect-3.1.1.pre.a config/initializers/patches.rb
zuora_connect-3.1.1 config/initializers/patches.rb
zuora_connect-3.1.0 config/initializers/patches.rb
zuora_connect-3.1.0.pre.g config/initializers/patches.rb
zuora_connect-3.1.0.pre.e config/initializers/patches.rb
zuora_connect-3.1.0.pre.d config/initializers/patches.rb
zuora_connect-3.1.0.pre.c config/initializers/patches.rb
zuora_connect-3.1.0.pre.b config/initializers/patches.rb
zuora_connect-3.1.0.pre.a config/initializers/patches.rb
zuora_connect-3.0.2.pre.r config/initializers/patches.rb
zuora_connect-3.0.2.pre.q config/initializers/patches.rb
zuora_connect-3.0.2.pre.p config/initializers/patches.rb
zuora_connect-3.0.2.pre.o config/initializers/patches.rb
zuora_connect-3.0.2.pre.n config/initializers/patches.rb
zuora_connect-3.0.2.pre.m config/initializers/patches.rb