lib/ears/middlewares/json.rb in ears-0.1.0 vs lib/ears/middlewares/json.rb in ears-0.2.0

- old
+ new

@@ -1,10 +1,12 @@ require 'multi_json' module Ears module Middlewares - module JSON - def self.call(delivery_info, metadata, payload, app) + class JSON + def initialize(_opts); end + + def call(delivery_info, metadata, payload, app) parsed_payload = MultiJson.load(payload) app.call(delivery_info, metadata, parsed_payload) end end end