algolia / algoliasearch-rails

AlgoliaSearch integration to your favorite ORM
MIT License
409 stars 119 forks source link

fix: don't consider objectID changed if using custom attribute #436

Closed DevinCodes closed 1 year ago

DevinCodes commented 1 year ago
Q A
Bug fix? yes
New feature? no
BC breaks? no
Related Issue Fix #...

Describe your change

This PR changes how we detect changes to the record in case a custom objectID is used. If a method is used to define the objectID, we currently always assumed it has changed, while we should assume it hasn't changed by default.