-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
flexport/algoliasearch-rails
#2Description
- Rails version: 5.1.6
- Algolia Rails integration version: 1.22
Description
#338 introduced a few
breaking changes (including 1 fixed in #350).
https://github.com/algolia/algoliasearch-rails/pull/338/files#diff-dfaec67e907148ea8211e17340f0f30cR749 changed the behavior
for when <attribute>_changed? doesn't exist. Previously it would
be conservative and always auto-index if there are custom attributes.
Now it will assume no changes are necessary
Steps To Reproduce
class AnyModel < ActiveRecord::Base
include AlgoliaSearch
algoliasearch do
attribute(:not_a_column) { some_column + 1 }
end
end
instance_of_model.update!(some_column: 3) # will not trigger algolia updateMetadata
Metadata
Assignees
Labels
No labels