lib/dendreo.rb in Dendreo-1.0.3 vs lib/dendreo.rb in Dendreo-1.0.4

- old
+ new

@@ -17,10 +17,10 @@ request_method = args.first[:method] datas = args.any? ? args.first[:datas] : {} base_url = "#{@url}/#{method_name_string}.php?key=#{@api_key}" case request_method when "get" - send_it(:get, "#{base_url}#{format_args_to_url(datas)}") + send_it(:get, "#{base_url}#{format_args_to_url(datas || {})}") when "post" send_it(:post, "#{base_url}", datas) when "delete" send_it(:delete, "#{base_url}#{format_args_to_url(datas)}") else