Skip to content

Commit

Permalink
Remove param casting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Jul 10, 2018
1 parent 5741a51 commit 97f06b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth0/api/v2/client_grants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module ClientGrants
# @return [json] Returns the client grants.
def client_grants (page: nil, per_page: nil)
request_params = {
page: !page.nil? ? page.to_i : nil,
per_page: !page.nil? && !per_page.nil? ? per_page.to_i : nil
page: page,
per_page: per_page
}
get(client_grants_path, request_params)
end
Expand Down

0 comments on commit 97f06b1

Please sign in to comment.