lib/zendesk_api/middleware/response/callback.rb in zendesk_api-0.3.2 vs lib/zendesk_api/middleware/response/callback.rb in zendesk_api-0.3.3

- old
+ new

@@ -8,12 +8,13 @@ def initialize(app, client) super(app) @client = client end - def on_complete(env) - super(env) - @client.callbacks.each {|c| c.call(env)} + def call(env) + @app.call(env).on_complete do |env| + @client.callbacks.each {|c| c.call(env)} + end end end end end end