-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service identifiers to GlobalConfig's list of identifiers outside…
… of autoload
- Loading branch information
1 parent
87fff65
commit 2c4fe8b
Showing
5 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -10,10 +10,14 @@ class ServiceModule < View | |
# @option options [required, String] :prefix | ||
def initialize(options) | ||
@service = options.fetch(:service) | ||
@service_identifier = @service.identifier | ||
@prefix = options.fetch(:prefix) | ||
@codegenerated_plugins = options.fetch(:codegenerated_plugins) || [] | ||
end | ||
|
||
# @return [String] | ||
attr_reader :service_identifier | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
alextwoods
Author
Contributor
|
||
|
||
# @return [String|nil] | ||
def generated_src_warning | ||
return if @service.protocol == 'api-gateway' | ||
|
@@ -108,7 +112,7 @@ def auto_load(path, class_name, is_plugin = false) | |
} | ||
end | ||
|
||
def service_identifier | ||
def prefix | ||
This comment has been minimized.
Sorry, something went wrong. |
||
@prefix | ||
end | ||
|
||
|
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
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
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
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
You could have made this a method that just returns @service.identifier