Permalink
Browse files

Accept app as the first argument

  • Loading branch information...
1 parent c7b6ceb commit fad2640b8fd70b3144cc26281be2decf53d66d4c Tony Arcieri committed Feb 16, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/pistachio/middleware.rb
@@ -1,6 +1,6 @@
module Pistachio
class Middleware
- def initialize
+ def initialize(app)
# Matches messages that should be processed by Pistachio
@path_regex = /^#{Pistachio.path}\/(\w+)$/
@timeout = Pistachio.timeout
@@ -20,4 +20,4 @@ def call(env)
end
end
end
-end
+end

0 comments on commit fad2640

Please sign in to comment.