Skip to content

Instantly share code, notes, and snippets.

@trevrosen
Created June 25, 2009 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trevrosen/136053 to your computer and use it in GitHub Desktop.
Save trevrosen/136053 to your computer and use it in GitHub Desktop.
# Booting ----
$: << File.join(File.dirname(__FILE__), 'lib')
$: << File.join(File.dirname(__FILE__), 'routes')
$: << File.join(File.dirname(__FILE__), 'helpers')
SINATRA_ROOT = File.expand_path(File.dirname((__FILE__))) unless defined? SINATRA_ROOT
require "rubygems"
require "sinatra"
require 'config/config'
# /Booting ----
unless test?
# Enable the Rack::Flash middleware for Rails-esque Flash hashes
use Rack::Flash, :sweep => true
end
# Routes ----
require "default_routes"
require "form_post_routes"
require "webex_routes"
require "one_off_routes"
# Helpers ----
require "default_helpers"
require "stats_helpers"
require "webex_helpers"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment