From: Tom Hughes Date: Thu, 23 Apr 2020 19:45:01 +0000 (+0100) Subject: Fix deprecation warning X-Git-Tag: live~3232 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ee783bcee9b632eacf834e154d6cf49c87ec121a?hp=dc4b116f8b0c6963b176e25a8baf915bb7dfbdd2 Fix deprecation warning --- 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)