lib/appush_client.rb in appush_client-0.2 vs lib/appush_client.rb in appush_client-0.3
- old
+ new
@@ -137,13 +137,9 @@
# PUT register a device with tags
def register_device(device_token, tags=[])
url = "#{@service_url}/device/#{device_token}"
- if tags.empty?
- return RestClient.put url, :content_type=>:json, :accept=>:json
- end
-
data = {:tags=>tags}.to_json
RestClient.put url, data, :content_type=>:json, :accept=>:json
end