Commit d3cce03
committed
Fix will_paginate crash when Meilisearch disabled
Using Meilisearch::Rails.active? as an alternative to checking that the
objects being replaced are actually NullObject.
For an alternative solution see #383
The advantage of this approach is that NullObject remains opaque and
requires no special treatment, and the logic is much easier to follow
(in my opinion).1 parent fae9961 commit d3cce03
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments