Skip to content
Browse files

Minor clean ups

  • Loading branch information...
1 parent b627f22 commit c65085727e728e90f9e51b009c042819cbf2c222 @akitaonrails committed Jan 12, 2010
Showing with 0 additions and 22 deletions.
  1. +0 −4 chatserver.rb
  2. +0 −18 config/routes.rb
View
4 chatserver.rb
@@ -1,9 +1,7 @@
require 'rubygems'
-require 'usher'
require 'thin'
require 'cramp/controller'
require 'cramp/model'
-require 'ruby-debug'
require 'active_support/all'
require 'active_support/json'
@@ -16,8 +14,6 @@
require 'app/models/chat'
require 'lib/fixes'
-require 'rack'
-
Cramp::Model.init(YAML.load(File.read('./config/database.yml')))
Cramp::Controller::Websocket.backend = :thin
Thin::Logging.trace = true
View
18 config/routes.rb
@@ -1,22 +1,4 @@
def app_routes
- # Usher::Interface.for(:rack) do
- # get('/').to(ChatController)
- # get('/retrieve').to(RetrieveController)
- # post('/receive').to(ReceiveController)
- # end
-
- # Rack::Builder.new do
- # use Rack::Static, :urls => ["/public"]
- # use Rack::Session::Cookie
- #
- # routes = Usher::Interface.for(:rack) do
- # get('/').to(ChatController)
- # get('/retrieve').to(RetrieveController)
- # post('/receive').to(ReceiveController)
- # end
- # run routes
- # end
-
Rack::Builder.new do
use Rack::Static, :urls => ["/public"]
use Rack::Session::Cookie

0 comments on commit c650857

Please sign in to comment.
Something went wrong with that request. Please try again.