Skip to content

Commit

Permalink
fix: remove not exist method (#1668)
Browse files Browse the repository at this point in the history
remove `records` delegation.

It does not exist, then it cause a error.
```
NoMethodError: undefined method `records' for #<Searchkick::Relation
```
  • Loading branch information
JohnnyKei authored Jan 27, 2024
1 parent 050019f commit 4f4020d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/searchkick/query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Query
attr_accessor :body

def_delegators :execute, :map, :each, :any?, :empty?, :size, :length, :slice, :[], :to_ary,
:records, :results, :suggestions, :each_with_hit, :with_details, :aggregations, :aggs,
:results, :suggestions, :each_with_hit, :with_details, :aggregations, :aggs,
:took, :error, :model_name, :entry_name, :total_count, :total_entries,
:current_page, :per_page, :limit_value, :padding, :total_pages, :num_pages,
:offset_value, :offset, :previous_page, :prev_page, :next_page, :first_page?, :last_page?,
Expand Down

0 comments on commit 4f4020d

Please sign in to comment.