Module: SwaggerUiEngine2::ConfigParser
- Included in:
- SwaggerDocsController
- Defined in:
- app/helpers/swagger_ui_engine_2/config_parser.rb
Instance Method Summary collapse
Instance Method Details
#configuration ⇒ Object
21 22 23 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 21 def configuration SwaggerUiEngine2.configuration end |
#set_validator_url ⇒ Object
13 14 15 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 13 def set_validator_url validator_enabled? ? SwaggerUiEngine2::DEFAULTS[:validator_url] : 'null' end |
#validator_enabled? ⇒ Boolean
17 18 19 |
# File 'app/helpers/swagger_ui_engine_2/config_parser.rb', line 17 def validator_enabled? configuration.validator_enabled || false end |