Update indexing.rb

Fix for index updating, for indexes which have data related to model methods, not only attributes.