Fixed case-statement in #match that prevented adding rules locally.

This commit is contained in:
soh_cah_toa
2013-06-02 22:23:27 -04:00
parent 7f4562945a
commit 998980b566

View File

@@ -63,7 +63,7 @@ module RubyDNS
catch :match do
begin
# Sourcify block (already a string only for RESTful API calls)
block_src = case block.class.name
block_src = case block
when String then block
when Proc then block.to_source
end