Skip to content

Commit ced61df

Browse files
committed
Merge pull request #94 from infertux/typos
Fix typos
2 parents 416172f + 7626667 commit ced61df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/intercom/api_operations/find.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module ApiOperations
33
module Find
44
module ClassMethods
55
def find(params)
6-
raise BadRequestError, "#{self}#find takes a hash as it's parameter but you supplied #{params.inspect}" unless params.is_a? Hash
6+
raise BadRequestError, "#{self}#find takes a hash as its parameter but you supplied #{params.inspect}" unless params.is_a? Hash
77
collection_name = Utils.resource_class_to_collection_name(self)
88
if params[:id]
99
response = Intercom.get("/#{collection_name}/#{params[:id]}", {})

lib/intercom/api_operations/find_all.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module ApiOperations
55
module FindAll
66
module ClassMethods
77
def find_all(params)
8-
raise BadRequestError, "#{self}#find takes a hash as it's parameter but you supplied #{params.inspect}" unless params.is_a? Hash
8+
raise BadRequestError, "#{self}#find takes a hash as its parameter but you supplied #{params.inspect}" unless params.is_a? Hash
99
collection_name = Utils.resource_class_to_collection_name(self)
1010
finder_details = {}
1111
if params[:id] && !type_switched_finder?(params)

0 commit comments

Comments
 (0)