Skip to content

Commit 6144406

Browse files
author
Kyle Decot
committed
Making sure path_with_params doesn't freak out if it's not passed a second argument
1 parent dc0f701 commit 6144406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/kmdata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def process(json)
3535
end
3636
end
3737

38-
def path_with_params(path, params)
38+
def path_with_params(path, params = {})
3939
[path, URI.encode_www_form(params)].join("?")
4040
end
4141

0 commit comments

Comments
 (0)