lib/rubydns/server.rb in rubydns-0.5.4 vs lib/rubydns/server.rb in rubydns-0.6.0
- old
+ new
@@ -56,10 +56,10 @@
case @pattern[0]
when Regexp
match_data = @pattern[0].match(name)
if match_data
server.logger.debug "Regexp pattern matched with #{match_data.inspect}."
- return @callback[match_data, *args]
+ return @callback[*args, match_data]
end
when String
if @pattern[0] == name
server.logger.debug "String pattern matched."
return @callback[*args]