Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 12 lines (9 sloc) 0.219 kb
863292dc »
2010-07-02 Proof of concept and skeleton code for staffer directory
1 require 'sinatra'
75710f5d »
2010-11-22 Switched to Bundler and Mongoid
2 require 'mongoid'
863292dc »
2010-07-02 Proof of concept and skeleton code for staffer directory
3
4 def config
75710f5d »
2010-11-22 Switched to Bundler and Mongoid
5 @config ||= YAML.load_file File.join(File.dirname(__FILE__), "config.yml")
863292dc »
2010-07-02 Proof of concept and skeleton code for staffer directory
6 end
7
8 configure do
75710f5d »
2010-11-22 Switched to Bundler and Mongoid
9 Mongoid.configure {|c| c.from_hash config[:mongoid]}
823f39bc »
2010-11-22 Moved models include to environment
10 end
11
12 require 'models'
Something went wrong with that request. Please try again.