-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api] Refactor dependency requires for Backend::Api
Now some files are required before the others to have them available for the other to use at loading time
- Loading branch information
Moises Deniz Aleman
committed
Sep 29, 2017
1 parent
884ac9c
commit 3e43fc5
Showing
4 changed files
with
7 additions
and
20 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
require 'benchmark' | ||
require 'api_exception' | ||
Dir[File.join(__dir__, '**', '*')].each {|file| require_dependency file } | ||
require_dependency 'connection' | ||
require_dependency 'connection_helper' | ||
require_dependency 'file' | ||
require_dependency 'logger' | ||
require_dependency 'test' | ||
require_dependency 'test/tasks' | ||
Dir[File.join(__dir__, 'api', '**', '*.rb')].sort.each {|file| require_dependency file } |