master
E. Almqvist 3 years ago
parent fae4ecee8d
commit 546e417a6d
  1. 1
      .gitignore
  2. 2
      config.ru
  3. 2
      src/lib/database.rb
  4. BIN
      src/public/avatars/1.png

1
.gitignore vendored

@ -1,5 +1,6 @@
src/db/ src/db/
vendor/ vendor/
.bundle/
src/public/auctions/ src/public/auctions/
/.yardoc/ /.yardoc/
/_yardoc/ /_yardoc/

@ -0,0 +1,2 @@
require_relative "./src/app"
run Sinatra::Application

@ -15,7 +15,7 @@ class EntityModel
# Initializes the table on startup # Initializes the table on startup
# @return [void] # @return [void]
def self.init_table def self.init_table
sql_file = "sql/tables/#{self.name}.sql" sql_file = File.dirname(__FILE__) + "/../sql/tables/#{self.name}.sql"
begin begin
q = File.read sql_file # get SQL script q = File.read sql_file # get SQL script

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

Loading…
Cancel
Save