X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/57f5b7840e540fd8b2240fe7786e989fb2f829af..8ebfdbc1ffacee695ca773f3b3c8af02bb41b8c1:/lib/potlatch.rb diff --git a/lib/potlatch.rb b/lib/potlatch.rb index f481e4412..3e4ddfaf3 100644 --- a/lib/potlatch.rb +++ b/lib/potlatch.rb @@ -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)