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.59.2 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.59.1 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.59.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.58.3 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.58.2 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.58.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.57.0 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.56.1 lib/pact_broker/ui/controllers/base_controller.rb
pact_broker-2.56.0 lib/pact_broker/ui/controllers/base_controller.rb