]> git.openstreetmap.org Git - rails.git/blobdiff - lib/potlatch.rb
Fix deprecation warning
[rails.git] / lib / potlatch.rb
index f481e4412da7517b835b9d3200158fb6ff05fee4..3e4ddfaf3d2a02a2bfe9d8c4c32518e9fd217d79 100644 (file)
@@ -120,7 +120,7 @@ module Potlatch
   # The Dispatcher class handles decoding a series of RPC calls
   # from the request, dispatching them, and encoding the response
   class Dispatcher
-    def initialize(request, &_block)
+    def initialize(request, &block)
       # Get stream for request data
       @request = StringIO.new(request + 0.chr)
 
@@ -135,7 +135,7 @@ module Potlatch
       end
 
       # Capture the dispatch routine
-      @dispatch = Proc.new
+      @dispatch = block
     end
 
     def each(&_block)