Skip to content

Commit

Permalink
Use throw :async as it works with thin and rainbows both
Browse files Browse the repository at this point in the history
  • Loading branch information
lifo committed Feb 14, 2011
1 parent f10e835 commit 1bb9738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 0 additions & 4 deletions examples/sse/rainbows.conf

This file was deleted.

7 changes: 2 additions & 5 deletions lib/cramp/abstract.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@

module Cramp
class Abstract

include Callbacks

ASYNC_RESPONSE = [-1, {}, []].freeze

class << self
def call(env)
controller = new(env).process
Expand All @@ -19,7 +16,7 @@ def initialize(env)

def process
EM.next_tick { before_start }
ASYNC_RESPONSE
throw :async
end

def continue
Expand Down Expand Up @@ -66,7 +63,7 @@ def params
end

def route_params
@env['router.params']||@env['usher.params']
@env['router.params'] || @env['usher.params']
end
end
end

0 comments on commit 1bb9738

Please sign in to comment.