Sha256: c32220c5d5fb617a95b83b58decc83b3e8e0a5329ec2dc25cf42d27f10c4510a
Contents?: true
Size: 357 Bytes
Versions: 68
Compression:
Stored size: 357 Bytes
Contents
# frozen_string_literal: true module Alchemy class PublishPageJob < BaseJob queue_as :default def perform(page_id, public_on:) page = Alchemy::Page.includes( Alchemy::EagerLoading.page_includes(version: :draft_version) ).find(page_id) Alchemy::Page::Publisher.new(page).publish!(public_on: public_on) end end end
Version data entries
68 entries across 68 versions & 1 rubygems