lib/pact_broker/api/resources/relationships.rb in pact_broker-1.2.0 vs lib/pact_broker/api/resources/relationships.rb in pact_broker-1.3.0

- old
+ new

@@ -14,14 +14,14 @@ def allowed_methods ["GET"] end def to_csv - generate_csv(pact_service.find_latest_pacts) + PactBroker::Api::Decorators::RelationshipsCsvDecorator.new(pacts).to_csv end - def generate_csv pacts - PactBroker::Api::Decorators::RelationshipsCsvDecorator.new(pacts).to_csv + def pacts + pact_service.find_latest_pacts end end end \ No newline at end of file