diff --git a/lib/pact_broker/api/resources.rb b/lib/pact_broker/api/resources.rb index 6bc1b4caf..60a348284 100644 --- a/lib/pact_broker/api/resources.rb +++ b/lib/pact_broker/api/resources.rb @@ -5,6 +5,8 @@ feature Reform::Form::Dry end -Dir.glob(File.expand_path(File.join(__FILE__, "..", "resources", "*.rb"))) do |file| - require file +require 'pact_broker/api/resources/base_resource' + +Dir.glob(File.expand_path(File.join(__FILE__, "..", "resources", "*.rb"))).sort.each do | path | + require path end