Class: AdequateSerialization::CacheRefresh::CacheRefreshJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/adequate_serialization/rails/cache_refresh.rb

Instance Method Summary collapse

Instance Method Details

#perform(record) ⇒ Object



39
40
41
42
43
# File 'lib/adequate_serialization/rails/cache_refresh.rb', line 39

def perform(record)
  record.class.serialized_associations.each do |association|
    record.public_send(association).refresh
  end
end