Skip to content

Commit 4174f66

Browse files
Update the opensearch-rails gem (RM-2427).
- Fix pagination tests by including the `OpenSearch::Model::Importing` manually. Not sure why this is necessary.
1 parent cc8a707 commit 4174f66

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

opensearch-model/spec/support/app/article_for_pagination.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
class ::ArticleForPagination < ActiveRecord::Base
1919
include OpenSearch::Model
2020

21+
# NOTE: This was added to fix pagination tests in ruby 3. It is not clear why
22+
# this is necessary since this should be done automatically by including
23+
# `OpenSearch::Model`.
24+
include OpenSearch::Model::Importing
25+
2126
scope :published, -> { where(published: true) }
2227

2328
settings index: { number_of_shards: 1, number_of_replicas: 0 } do

0 commit comments

Comments
 (0)