lib/caboodle/app.rb in caboodle-0.2.22 vs lib/caboodle/app.rb in caboodle-0.2.23

- old
+ new

@@ -4,14 +4,15 @@ set :logging, true set :root, File.expand_path(".") set :views, Proc.new { File.join(root, "views") } set :public, Proc.new { File.join(root, "public") } set :run, false + set :root_config, File.expand_path(File.join(Caboodle::App.root,"config","site.yml")) helpers Sinatra::CaboodleHelpers configure do - Caboodle::Kit.configure_site File.expand_path(File.join(Caboodle::App.root,"config","site.yml")) + Caboodle::Kit.configure_site root_config if File.exists?(root_config) end end end \ No newline at end of file