Sha256: bd66da94462cdcda08bcb5bebd48db1a0bbdccece4629f0a3fe1f6c08a0fd7c0
Contents?: true
Size: 394 Bytes
Versions: 62
Compression:
Stored size: 394 Bytes
Contents
module Workarea class GenerateContentMetadata include Sidekiq::Worker def perform(*args) Catalog::Category.all.each_by(100) do |category| Metadata.update(Content.for(category)) end Content::Page.all.each_by(100) do |page| Metadata.update(Content.for(page)) end Metadata::HomePage.new(Content.for('home_page')).update end end end
Version data entries
62 entries across 62 versions & 1 rubygems