CanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?
I’m working on a project that has Cue model that could be accessed and searched by multiple roles like guest and admin. The authorization happens using CanCanCan gem based on some logic written in the...
View ArticleCanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?
Hi Ali Fadel, You can try overriding the pagy_meilisearch method to get the accurate count by using accessible_by(current_ability). def pagy_meilisearch(search_results) total_count =...
View ArticleCanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?
The same question on StackOverflow if you like to answer there: stackoverflow.com CanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems? ruby-on-rails, ruby, cancancan, meilisearch asked by...
View Article
More Pages to Explore .....