Sha256: d496c0f5163133a86415236a785c0c0689b4387d2e39bc3756bfd0b863ac0b31
Contents?: true
Size: 737 Bytes
Versions: 2
Compression:
Stored size: 737 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 Dir.chdir __dir__ do Dir.glob("base_controller/*.rb").sort.each do |file| require_relative file end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple-httpd-0.0.4 | lib/simple/httpd/base_controller.rb |
simple-httpd-0.0.2 | lib/simple/httpd/base_controller.rb |