we have been using the after_commit callback provided for activerecord to action a ‘touch’ to our model. This has so far worked fine for all new and updated commits for our model… however, we have introduced a delete function and for some reason, it is actioning all of our models custom methods but not the algolia ones.
on the join table;
after_commit :model_touch, on: [:create, :update, :destroy]
on the model;
works for all custom mehtods i.e.
def do_something p "Something" end
but not for algolia attribute methods i.e.
attribute :column do "something" end
this has meant that our records in algolia are half correct… except that they still include the previously deleted records.