Sha256: accd06bcc5fa8a8878038a5ce81ac01be4ce0a3cc1d5ca5921a7084076e80465

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

ENV['SINATRA_ENV'] ||= "development"

require 'bundler/setup'
Bundler.require(:default, ENV['SINATRA_ENV'])

ActiveRecord::Base.establish_connection(
  :adapter => "sqlite3",
  :database => "db/#{ENV['SINATRA_ENV']}.sqlite"
)

require_all 'app'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.15 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.14 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.13 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.12 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.11 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.1 lib/templates/sinatra-mvc/config/environment.rb
learn-generate-1.0.0 lib/templates/sinatra-mvc/config/environment.rb