Skip to content

Commit

Permalink
fix issue with new
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 14, 2010
1 parent 654edbb commit ae8e498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/async_rack/async_callback.rb
Expand Up @@ -86,9 +86,9 @@ def included(klass)
private
def setup_late_initialize(klass)
class << klass
alias create new
def new(*args, &block)
proc { |env| create(*args, &block).call(env) }
return super if File.expand_path(caller.first[/^[^:]+/]) == File.expand_path(__FILE__)
proc { |env| new(*args, &block).call(env) }
end
end
end
Expand Down

0 comments on commit ae8e498

Please sign in to comment.