|
20 | 20 | <img src="https://codecov.io/gh/meilisearch/meilisearch-rails/branch/main/graph/badge.svg?token=9J7LRP11IR"/> |
21 | 21 | </a> |
22 | 22 | <a href="https://github.com/meilisearch/meilisearch-rails/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-informational" alt="License"></a> |
23 | | - <a href="https://ms-bors.herokuapp.com/repositories/68"><img src="https://bors.tech/images/badge_small.svg" alt="Bors enabled"></a> |
24 | 23 | </p> |
25 | 24 |
|
26 | 25 | <p align="center">⚡ The Meilisearch integration for Ruby on Rails 💎</p> |
@@ -113,7 +112,7 @@ bin/rails meilisearch:install |
113 | 112 |
|
114 | 113 | The gem is compatible with [ActiveRecord](https://github.com/rails/rails/tree/master/activerecord), [Mongoid](https://github.com/mongoid/mongoid) and [Sequel](https://github.com/jeremyevans/sequel). |
115 | 114 |
|
116 | | -⚠️ Note that even if you want to use all the default options, you must declare an empty `meilisearch` block in your model. |
| 115 | +⚠️ Note that even if you want to use all the default options, you must declare an empty `meilisearch` block in your model. |
117 | 116 |
|
118 | 117 | #### Add documents <!-- omit in toc --> |
119 | 118 |
|
@@ -348,7 +347,7 @@ An enumerable `FederatedSearchResult` is returned, which can be iterated through |
348 | 347 |
|
349 | 348 |
|
350 | 349 | <ul> |
351 | | - <!-- Attack on Titan appears first even though it was specified second, |
| 350 | + <!-- Attack on Titan appears first even though it was specified second, |
352 | 351 | it's ranked higher because it's a closer match --> |
353 | 352 | <li>Attack on Titan</li> |
354 | 353 | <li>Harry Potter and the Philosopher's Stone</li> |
@@ -387,7 +386,7 @@ results = Meilisearch::Rails.federated_search( |
387 | 386 |
|
388 | 387 | ### Loading records <!-- omit in toc --> |
389 | 388 |
|
390 | | -Records are loaded when the `:scope` option is passed (may be a model or a relation), |
| 389 | +Records are loaded when the `:scope` option is passed (may be a model or a relation), |
391 | 390 | or when a hash query is used with models as keys: |
392 | 391 |
|
393 | 392 | ```ruby |
@@ -601,7 +600,7 @@ Meilisearch::Rails.deactivate! # all the following HTTP calls will be dismissed. |
601 | 600 |
|
602 | 601 | Meilisearch::Rails.deactivate! do |
603 | 602 | # every Meilisearch call here will be dismissed, no error will be raised. |
604 | | - # after the block, Meilisearch state will be active. |
| 603 | + # after the block, Meilisearch state will be active. |
605 | 604 | end |
606 | 605 | ``` |
607 | 606 |
|
@@ -687,7 +686,7 @@ class Book < ActiveRecord::Base |
687 | 686 | end |
688 | 687 | ``` |
689 | 688 |
|
690 | | -You can also set the `primary_key` as a method, this method will be evaluated in runtime, and its return |
| 689 | +You can also set the `primary_key` as a method, this method will be evaluated in runtime, and its return |
691 | 690 | will be used as the reference to the document when Meilisearch needs it. |
692 | 691 |
|
693 | 692 | ```rb |
|
0 commit comments