README.md in meilisearch-rails-0.6.0 vs README.md in meilisearch-rails-0.7.0

- old
+ new

@@ -56,11 +56,11 @@ To learn more about Meilisearch, check out our [Documentation](https://docs.meilisearch.com/learn/tutorials/getting_started.html) or our [API References](https://docs.meilisearch.com/reference/api/). ## 🤖 Compatibility with Meilisearch -This package only guarantees the compatibility with the [version v0.27.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.27.0). +This package only guarantees the compatibility with the [version v0.28.0 of Meilisearch](https://github.com/meilisearch/meilisearch/releases/tag/v0.28.0). ## 🔧 Installation <!-- omit in toc --> This package requires Ruby version 2.6.0 or later and Rails 5.2 or later. @@ -260,32 +260,20 @@ end ``` #### Index UID according to the environment <!-- omit in toc --> -You can suffix the index UID with the current Rails environment using one of the following options: +You can suffix the index UID with the current Rails environment by setting it globally: -By defining directly in your model: - ```ruby -class Book < ActiveRecord::Base - include MeiliSearch::Rails - - meilisearch per_environment: true -end -``` - -Or setting it globally: - -```ruby MeiliSearch::Rails.configuration = { meilisearch_host: 'YourMeilisearchHost', meilisearch_api_key: 'YourMeilisearchAPIKey', per_environment: true } ``` -Both options will make your index name look like this `"Book_#{Rails.env}"`. +This way your index UID will look like this `"Book_#{Rails.env}"`. ### Index configuration #### Custom attribute definition