Sha256: 2f24369e6e3e5d99e4f3c8fb8384035161f4289037a533a8026207dfcaf02ce6
Contents?: true
Size: 375 Bytes
Versions: 5
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true module Motor module WrapIoParams private def wrap_io_params(hash = params) hash.each do |key, value| if key == 'io' hash[key] = StringIO.new(value.encode('ISO-8859-1')) elsif value.is_a?(ActionController::Parameters) wrap_io_params(value) end end hash end end end
Version data entries
5 entries across 5 versions & 1 rubygems