Skip to content

Commit 1071ca8

Browse files
committed
feat: add missing super calls in BaseResource child classes
1 parent fbe3266 commit 1071ca8

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

lib/pact_broker/api/resources/can_i_deploy.rb

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Api
77
module Resources
88
class CanIDeploy < Matrix
99
def initialize
10+
super
1011
@query_params = JSON.parse(Rack::Utils.parse_nested_query(request.uri.query).to_json, symbolize_names: true)
1112
@selectors, @options = PactBroker::Matrix::ParseCanIDeployQuery.call(query_params)
1213
end

lib/pact_broker/api/resources/matrix.rb

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class Matrix < BaseResource
1010
attr_reader :selectors, :options
1111

1212
def initialize
13+
super
1314
@selectors, @options = PactBroker::Matrix::ParseQuery.call(request.uri.query)
1415
end
1516

lib/pact_broker/api/resources/matrix_for_consumer_and_provider.rb

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module Resources
77
class MatrixForConsumerAndProvider < BaseResource
88

99
def initialize
10+
super
1011
_, @options = PactBroker::Matrix::ParseQuery.call(request.uri.query)
1112
end
1213

lib/pact_broker/api/resources/provider_pacts_for_verification.rb

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module Api
88
module Resources
99
class ProviderPactsForVerification < ProviderPacts
1010
def initialize
11+
super
1112
@query = Rack::Utils.parse_nested_query(request.uri.query)
1213
end
1314

0 commit comments

Comments
 (0)