lib/hydroponics.rb in hydroponics-0.2.2 vs lib/hydroponics.rb in hydroponics-0.3.0
- old
+ new
@@ -1,19 +1,2 @@
-require 'erb'
-require 'fileutils'
-require File.join(FileUtils.pwd, "lib/db_remote.rb")
-
-class HydroApp < Sinatra::Base
- include DbRemote
-
- set :root, File.join(FileUtils.pwd, "lib")
- set :public, File.join(FileUtils.pwd, "static")
- set :version, "0.2.1"
-
- get '/' do
- erb :index
- end
-
- get '/round1' do
- erb :index
- end
-end
+require './lib/hydroponics/setup.rb'
+Dir['./app/actions/*.rb'].each { |f| require f; }
\ No newline at end of file