lib/knackhq/client.rb in knackhq-client-0.2.1 vs lib/knackhq/client.rb in knackhq-client-0.3.0

- old
+ new

@@ -75,11 +75,10 @@ Blanket.wrap(@base_uri.dup, :headers => headers) end def payload_hash(hash_request) - payload = hash_request.first.to_h - Hashie.symbolize_keys!(payload) + Hashie.symbolize_keys!(hash_request.to_h) end def translate_payload(payload, &block) return [] if payload.empty? block.call