lib/pact_broker/api/resources/group.rb in pact_broker-2.58.0 vs lib/pact_broker/api/resources/group.rb in pact_broker-2.58.2
- old
+ new
@@ -1,13 +1,11 @@
require 'pact_broker/api/resources/base_resource'
require 'pact_broker/api/decorators/relationships_csv_decorator'
module PactBroker
-
module Api
module Resources
-
class Group < BaseResource
def content_types_provided
[["text/csv", :to_csv]]
end
@@ -24,22 +22,12 @@
PactBroker::Api::Decorators::RelationshipsCsvDecorator.new(group).to_csv
end
private
- def pacticipant_name
- identifier_from_path[:pacticipant_name]
- end
-
- def pacticipant
- @pacticipant ||= pacticipant_service.find_pacticipant_by_name(pacticipant_name)
- end
-
def group
- @group ||= group_service.find_group_containing pacticipant
+ @group ||= group_service.find_group_containing(pacticipant)
end
-
end
end
-
end
end
\ No newline at end of file