pagy
pagy copied to clipboard
ActiveRecord_Relation.include Pagy::*
We should ensure that all the search extras that deal with ,includes in the active record relation have a note that indicates to add the specific Pagy::* module. For example:
ActiveRecord_Relation.include Pagy::Meilisearch
See https://github.com/ddnexus/pagy/discussions/400#discussioncomment-4412457
This looks similar to the Searchkick https://github.com/ddnexus/pagy/issues/319, although handled in a different way.
Not sure whether ElasticsearchRails has the same case, but it might be worth investigating.