This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Description
When I use a Sinatra::Base class to create my App like for example:
myapp.rb
require 'sinatra/base'
require 'sinatra/sequel'
class MyApp < Sinatra::Base
configure do
set :sessions, true
set :database, "postgres://username:password@localhost/mydb"
require 'article.rb'
end
get '/' do
'Hello world!'
end
end
article.rb
class Article < Sequel::Model
end
wherever I put the require line of my model, this error occurs: 'db': No database associated with Sequel::Model (Sequel::Error)
My goal is to use this model not only in MyApp class but also in another classes instantiated in place of the "hello world" line (so in a get path block).