Module: EasySwaggerUi::ApplicationHelper
- Defined in:
- app/helpers/easy_swagger_ui/application_helper.rb
Instance Method Summary collapse
Instance Method Details
#asset_available?(path) ⇒ Boolean
7 8 9 10 11 12 13 |
# File 'app/helpers/easy_swagger_ui/application_helper.rb', line 7 def asset_available?(path) if Rails.configuration.assets.compile Rails.application.precompiled_assets.include?(path) else Rails.application.assets_manifest.assets[path].present? end end |
#swagger_routes ⇒ Object
3 4 5 |
# File 'app/helpers/easy_swagger_ui/application_helper.rb', line 3 def swagger_routes Engine.routes.url_helpers end |