We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cef17 commit fbe2e38Copy full SHA for fbe2e38
lib/intercom/api_operations/find.rb
@@ -5,7 +5,8 @@ def find(params)
5
raise BadRequestError, "#{self}#find takes a hash as its parameter but you supplied #{params.inspect}" unless params.is_a? Hash
6
collection_name = Utils.resource_class_to_collection_name(collection_class)
7
if params[:id]
8
- response = @client.get("/#{collection_name}/#{params[:id]}", {})
+ id = params.delete(:id)
9
+ response = @client.get("/#{collection_name}/#{id}", params)
10
else
11
response = @client.get("/#{collection_name}", params)
12
end
0 commit comments