Class: DbSession

Inherits:
Sequel::Model
  • Object
show all
Defined in:
lib/taps/db_session.rb

Instance Method Summary collapse

Instance Method Details

#connObject



13
14
15
16
17
# File 'lib/taps/db_session.rb', line 13

def conn
  Sequel.connect(database_url) do |db|
    yield db if block_given?
  end
end