Sha256: 133f4dbf11287d23c8383f4913c98fdcadc0b3673e23f9ae5196d7885f2f1779

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 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 './app'
require_all 'models'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
learn-generate-1.0.16 lib/templates/sinatra-classic-db/config/environment.rb
learn-generate-1.0.15 lib/templates/sinatra-classic-db/config/environment.rb