aboutsummaryrefslogtreecommitdiff
path: root/src/guff/model.cr
blob: 0bc0e780a27aa5ee895ba919cb7ae04ae8d7276f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Guff
  class Model
    getter :config
    getter :db

    def initialize(@config : Config)
      # create site database
      db_path = "%s/site.db" % [config["data"]]
      @db = Database.new(db_path)
    end
  end
end