Sha256: 7238697d9b14c35b469e166dfd4f80435765e5b82ee0a5f04f15587550fb28bf

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 Bytes

Contents

require 'bundler'
Bundler.setup

require 'active_support/core_ext'
require 'sinatra/base'
require 'sinatra/twitter-bootstrap'
require 'sprockets'
require 'mongoid'
require 'json'

env = ENV["RACK_ENV"] ? ENV["RACK_ENV"] : "development"

Mongoid.load!(File.join(File.dirname(__FILE__), "mongoid.yml"), env.to_sym)

%w{apps models}.each do |dir|
  Dir[File.expand_path(File.join(dir, "**", "*.rb"), File.dirname(__FILE__))].each do |file|
    require file
  end  
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
deano-1.0.0 template_app/setup.rb
sinatra-template-1.3.0 template_app/setup.rb
sinatra-template-1.2.0 template_app/setup.rb
sinatra-template-1.1.0 template_app/setup.rb
sinatra-template-1.0.0 template/setup.rb