Sha256: 175acf4bfae566ea3b68c7e877abd637fc3c12d428381c27e6684ad1887c68bc

Contents?: true

Size: 337 Bytes

Versions: 23

Compression:

Stored size: 337 Bytes

Contents

class InfoController < ApplicationController
    # This is a model-less controller just to render che swagger page using a custom layout
    layout 'swagger'
    def swagger
        uri = URI(request.url)
        @swagger_json_url = "#{uri.scheme}://#{uri.host}#{":#{uri.port}" if uri.port.present?}/api/v2/info/swagger.json"
    end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
thecore_ui_commons-3.2.12 app/controllers/info_controller.rb
thecore_ui_commons-3.2.11 app/controllers/info_controller.rb
thecore_ui_commons-3.2.10 app/controllers/info_controller.rb
thecore_ui_commons-3.2.9 app/controllers/info_controller.rb
thecore_ui_commons-3.2.8 app/controllers/info_controller.rb
thecore_ui_commons-3.2.7 app/controllers/info_controller.rb
thecore_ui_commons-3.2.6 app/controllers/info_controller.rb
thecore_ui_commons-3.2.5 app/controllers/info_controller.rb
thecore_ui_commons-3.2.4 app/controllers/info_controller.rb
thecore_ui_commons-3.2.3 app/controllers/info_controller.rb
thecore_ui_commons-3.2.2 app/controllers/info_controller.rb
thecore_ui_commons-3.2.1 app/controllers/info_controller.rb
thecore_ui_commons-3.2.0 app/controllers/info_controller.rb
thecore_ui_commons-3.1.11 app/controllers/info_controller.rb
thecore_ui_commons-3.1.10 app/controllers/info_controller.rb
thecore_ui_commons-3.1.9 app/controllers/info_controller.rb
thecore_ui_commons-3.1.8 app/controllers/info_controller.rb
thecore_ui_commons-3.1.7 app/controllers/info_controller.rb
thecore_ui_commons-3.1.6 app/controllers/info_controller.rb
thecore_ui_commons-3.1.5 app/controllers/info_controller.rb