Sha256: d85c3a8d95f93ed92809bc6098a72a5a7ca02b3a2f60ddd8c5b417806b00d249
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
module Faraday class Request class XML < Faraday::Middleware dependency 'active_support/all' def initialize(app, options={}) @app = app @options = options end def call(env) if env[:method] == :post env[:body] = env[:body].to_xml(:root => env[:body].delete(:root)) puts env[:body] end @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
letsfreckle-client-0.2.0 | lib/faraday/request/xml.rb |