Sha256: bdea63d651915fc14fe8bb8752447baad31b5ee221933300563aeca90d028730

Contents?: true

Size: 277 Bytes

Versions: 22

Compression:

Stored size: 277 Bytes

Contents

module Spina
  class ResourcePagesUpdateJob < ApplicationJob
    queue_as { Spina.config.queues[:page_updates] }
  
    def perform(resource_id)
      Page.where(resource_id: resource_id).roots.find_each(batch_size: 100) do |page|
        page.save
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spina-2.12.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.11.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.10.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.9.1 app/jobs/spina/resource_pages_update_job.rb
spina-2.9.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.8.1 app/jobs/spina/resource_pages_update_job.rb
spina-2.8.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.7.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.6.2 app/jobs/spina/resource_pages_update_job.rb
spina-2.6.1 app/jobs/spina/resource_pages_update_job.rb
spina-2.6.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.5.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.4.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.5 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.4 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.3 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.2 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.1 app/jobs/spina/resource_pages_update_job.rb
spina-2.3.0 app/jobs/spina/resource_pages_update_job.rb
spina-2.2.0 app/jobs/spina/resource_pages_update_job.rb