Skip to content

Commit

Permalink
Merge pull request #5 from larquin/larquin-autoload-sequel-gem
Browse files Browse the repository at this point in the history
Explicitly add Sequel gem on config template
  • Loading branch information
peterhellberg committed Nov 22, 2015
2 parents 581ac00 + e713cfb commit 51de275
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/templates/config/initializers/database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
settings = YAML::load_file("config/db.yml")
<% if @database != 'mongo' -%>
# Sequel Configuration
DB = Sequel.connect(settings[ENV['RACK_ENV']])
require "sequel"
DB = Sequel.connect(settings[ENV['RACK_ENV']])
<% else -%>
# MongoDB Configuration
<% end -%>
Expand Down

0 comments on commit 51de275

Please sign in to comment.