lib/pact_broker/api/resources/webhook.rb in pact_broker-1.2.0 vs lib/pact_broker/api/resources/webhook.rb in pact_broker-1.3.0
- old
+ new
@@ -14,10 +14,10 @@
def allowed_methods
["GET", "DELETE"]
end
def resource_exists?
- !webhook.nil?
+ webhook
end
def to_json
Decorators::WebhookDecorator.new(webhook).to_json(base_url: base_url)
end
\ No newline at end of file