lib/bubbles/endpoint.rb in bubbles-rest-client-0.3.0 vs lib/bubbles/endpoint.rb in bubbles-rest-client-0.3.1
- old
+ new
@@ -146,9 +146,13 @@
# @param [RestEnvironment] env The +RestEnvironment+ to use to access this +Endpoint+.
#
# @return [String] A +String+ containing the full URL to access this +Endpoint+ on the given {RestEnvironment}.
#
def get_expanded_url(env, uri_params = {})
+ unless uri_params
+ uri_params = {}
+ end
+
url = get_base_url env
if is_complex?
special_url_string = '{scheme}://{host}/'
unless @port == 80 || @port == 443
\ No newline at end of file