Module: GrapeSwaggerRails::ApplicationHelper
- Defined in:
- app/helpers/grape_swagger_rails/application_helper.rb
Overview
View helpers for the Swagger UI page.
Instance Method Summary collapse
Instance Method Details
#swagger_data_attributes ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/grape_swagger_rails/application_helper.rb', line 6 def swagger_data_attributes = GrapeSwaggerRails. display_defaults = { api_key_input: true, info_url: true, doc_version: true, version_stamp: true } display = display_defaults.merge((.display || {}).transform_keys(&:to_sym)) { swagger_options: .marshal_dump.to_json, hide_api_key: !display[:api_key_input], hide_info_url: !display[:info_url] } end |