Skip to content

Commit

Permalink
remove to_ary delegation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbl committed Nov 12, 2019
1 parent bea4ef5 commit b91993f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
v0.13.1
- remove superfluous 'to_ary' delegation that was causing issues downstream
v0.13.0
- changes needed for use with Elasticsearch v7
- handle the v7 "total" as an object rather than a scalar
Expand Down
2 changes: 1 addition & 1 deletion lib/elasticity/search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def active_records(relation)
class LazySearch
include Enumerable

delegate :each, :size, :length, :[], :+, :-, :&, :|, :total, :per_page, :to_ary,
delegate :each, :size, :length, :[], :+, :-, :&, :|, :total, :per_page,
:total_pages, :current_page, :next_page, :previous_page, :aggregations, to: :search_results

attr_accessor :search_definition
Expand Down
2 changes: 1 addition & 1 deletion lib/elasticity/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Elasticity
VERSION = "0.13.0"
VERSION = "0.13.1.pre"
end

0 comments on commit b91993f

Please sign in to comment.