From 52b67313cc38d14008e198ca77e605a406ec4a30 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 16 Aug 2014 16:55:39 +0700 Subject: [PATCH] Use splat operator instead of array-wrapping --- lib/burlesque/client.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/burlesque/client.rb b/lib/burlesque/client.rb index 90f5371..1f4c27e 100644 --- a/lib/burlesque/client.rb +++ b/lib/burlesque/client.rb @@ -23,8 +23,7 @@ module Burlesque res.body == OK end - def subscribe queues - queues = Array(queues) + def subscribe *queues req = Net::HTTP::Get.new("#{SUB_ENDPOINT}?queues=#{queues.join(?,)}") begin