Sha256: 0dd840917847c3a58eaa690ff499b7f7bd9c2677dabe7f3e0b4837cdaf846408

Contents?: true

Size: 514 Bytes

Versions: 29

Compression:

Stored size: 514 Bytes

Contents

require 'padrino-core'
require 'haml'
require 'pact_broker/services'

module PactBroker
  module UI
    module Controllers
      class Base < Padrino::Application

        set :root, File.join(File.dirname(__FILE__), '..')
        set :show_exceptions, ENV['RACK_ENV'] != 'production'
        set :dump_errors, false # The padrino logger logs these for us. If this is enabled we get duplicate logging.

        def base_url
          PactBroker.configuration.base_url || ''
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pact_broker-2.76.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.75.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.74.1 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.74.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.73.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.72.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.71.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.70.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.69.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.68.1 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.68.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.67.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.66.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.65.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.64.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.63.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.62.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.61.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.60.1 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.60.0 lib/pact_broker/ui/controllers/base_controller.rb