lib/flexirest/request.rb in flexirest-1.3.17 vs lib/flexirest/request.rb in flexirest-1.3.18

- old
+ new

@@ -43,13 +43,17 @@ end end def base_url if object_is_class? - @object.base_url + url = @object.base_url else - @object.class.base_url + url = @object.class.base_url end + if url.is_a?(Array) + url = url.sample + end + url end def using_api_auth? if object_is_class? @object.using_api_auth?