lib/pact_broker/api/resources/webhook.rb in pact_broker-2.74.1 vs lib/pact_broker/api/resources/webhook.rb in pact_broker-2.75.0
- old
+ new
@@ -47,11 +47,11 @@
201
end
end
def to_json
- Decorators::WebhookDecorator.new(webhook).to_json(decorator_options)
+ decorator_class(:webhook_decorator).new(webhook).to_json(decorator_options)
end
def delete_resource
webhook_service.delete_by_uuid uuid
true
@@ -66,10 +66,10 @@
def webhook
@webhook ||= webhook_service.find_by_uuid uuid
end
def parsed_webhook
- @parsed_webhook ||= Decorators::WebhookDecorator.new(PactBroker::Domain::Webhook.new).from_json(request_body)
+ @parsed_webhook ||= decorator_class(:webhook_decorator).new(PactBroker::Domain::Webhook.new).from_json(request_body)
end
def uuid
identifier_from_path[:uuid]
end