0
0
zero-blog/lib/boot.rb

16 lines
378 B
Ruby
Raw Normal View History

2013-10-20 22:04:01 +02:00
$LOAD_PATH << File.expand_path('..', __FILE__)
require 'libraries'
require 'session'
require 'application'
require 'controller'
require 'renderer'
require 'router'
2013-10-26 12:33:15 +02:00
config = YAML.load_file(File.expand_path('../../config.yml', __FILE__))
DB = Sequel.connect(config[:db])
2013-10-20 22:04:01 +02:00
Dir[File.expand_path('../../controller', __FILE__) + '/**'].each do |controller|
require controller
end