Skip to content

Commit

Permalink
chore: require base_resource.rb before requiring any other resource f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
bethesque committed Jun 26, 2018
1 parent 4ee0646 commit 14131c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/pact_broker/api/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 14131c5

Please sign in to comment.