Quantcast
Channel: CanCanCan, Pagy, and MeiliSearch, How to combine the 3 gems?
Browsing latest articles
Browse All 3 View Live

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 Article



CanCanCan, 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 Article

Image may be NSFW.
Clik here to view.

CanCanCan, 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
Browsing latest articles
Browse All 3 View Live




Latest Images