Skip to content

Commit b944c12

Browse files
committed
fixing paginator to accept strings or symbols as paer_page key
1 parent d9c3f17 commit b944c12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json_api_client/paginating/paginator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def next_page
8282
def params_for_uri(uri)
8383
return {} unless uri
8484
uri = Addressable::URI.parse(uri)
85-
uri.query_values || {}
85+
( uri.query_values || {} ).with_indifferent_access
8686
end
8787
end
8888
end

0 commit comments

Comments
 (0)