Skip to content
This repository was archived by the owner on Dec 12, 2023. It is now read-only.

Commit a06cc5f

Browse files
committed
Fix typo
1 parent 24f28f0 commit a06cc5f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/freshdesk_api_v2/base.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def validate_search_pagination!(first_page, last_page)
7373
end
7474

7575
def prepare_attributes!(attributes)
76-
clean = attributes.reject { |key, value | !allowed_attributes.include?(key) || value.nil? }
76+
clean = attributes.reject { |key, value | !allowed_attributes.include?(key.to_sym) || value.nil? }
7777
custom_fields = clean['custom_fields']
7878
if !custom_fields.nil? && custom_fields.any?
7979
custom_fields = custom_fields.reject { |_, value| value.nil? }

lib/freshdesk_api_v2/http.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize(configuration)
77

88
# Freshdesk's search API uses a different pagination mechanism than their
99
# regular pagination mechanism, so this implementation needs to be different.
10-
def paginate_search(url, last_page, collection = [])
10+
def paginated_search(url, last_page, collection = [])
1111
current_page = 1
1212
page_count, items = do_search(url)
1313
collection += items

spec/freshdesk_api_v2_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66
it 'can be configured' do
77
expect(FreshdeskApiV2).to respond_to(:configure)
88
end
9+
910
end

0 commit comments

Comments
 (0)