Sha256: e815f35dfc4c5cc2f7c20390ad4f2085aad6ad2f73b323ecb04fce9951d95adc

Contents?: true

Size: 245 Bytes

Versions: 1

Compression:

Stored size: 245 Bytes

Contents

<% unless @no_database -%>
require "yaml"
settings = YAML::load_file("config/db.yml")
<% if @database != 'mongo' -%>
# Sequel Configuration
DB = Sequel.connect(settings[ENV['RACK_ENV']])
<% else -%>
# MongoDB Configuration
<% end -%>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hazel-0.0.7 lib/templates/config/initializers/database.rb