Sha256: 5ff31d6de82c2bfaba576043ebd17db0507584c40867791277a6861d6c898265

Contents?: true

Size: 854 Bytes

Versions: 3

Compression:

Stored size: 854 Bytes

Contents

# Note that all components in base_controller/*.rb are loaded automatically, from
# config/routes.rb, **after** this file is loaded. See the end of this file.

require "sinatra/base"

class Simple::Httpd::BaseController < Sinatra::Base
  set :logging, true

  # --- Sinatra::Reloader -----------------------------------------------------

  # Note that Sinatra::Reloader is less thorough than, say, shotgun or the
  # Rails development mode, but on the other hand it is much faster, and
  # probably useful 90% of the time.
  configure :development do
    # require "sinatra/reloader"
    # register Sinatra::Reloader
  end
end

require_relative "./route"

class Simple::Httpd::BaseController
  extend ::Simple::Httpd::RouteDescriptions
end

Dir.chdir __dir__ do
  Dir.glob("base_controller/*.rb").sort.each do |file|
    require_relative file
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-httpd-0.3.4 lib/simple/httpd/base_controller.rb
simple-httpd-0.3.3 lib/simple/httpd/base_controller.rb
simple-httpd-0.3.1 lib/simple/httpd/base_controller.rb