From 9173b7485090d784c14eec4cb86d46332f1ad124 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Tue, 31 Jan 2012 22:34:26 +0100 Subject: [PATCH] Small cleanup for the block override that works with recent Mab --- stoptime.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stoptime.rb b/stoptime.rb index 273868f..991e27f 100644 --- a/stoptime.rb +++ b/stoptime.rb @@ -87,8 +87,7 @@ module StopTime::Mab tag.attributes[:method] = 'post' if override = !SUPPORTED.include?(meth) # Inject a hidden input element with the proper method to the tag block # if the form method is unsupported. - orig_blk = tag.block - tag.block = proc do + tag.block do |orig_blk| input :type => 'hidden', :name => '_method', :value => meth orig_blk.call end if override