Class: Relation

Inherits:
ApplicationRecord show all
Defined in:
app/models/relation.rb

Instance Method Summary collapse

Instance Method Details

#reindexObject

This takes care of reindexing an objects follower clap and saved count after someone did something on those



18
19
20
# File 'app/models/relation.rb', line 18

def reindex
  resource&.index!
end