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