Sha256: e05de9b14bb3dfe78143d0dbd06a027a2088f102dc719c4b45e8e59a9edd54b2
Contents?: true
Size: 479 Bytes
Versions: 21
Compression:
Stored size: 479 Bytes
Contents
class Pulitzer::PostTypeVersionsController::ClonePostWithVersionElements def initialize(post, new_post_type_version) @post = post @new_post_type_version = new_post_type_version end def call new_post = @new_post_type_version.posts.create(title: @post.title) @post.clonable_versions.each do |version| processing_version = new_post.create_processing_version Pulitzer::CloneVersion.new(version, processing_version).call end end end
Version data entries
21 entries across 21 versions & 1 rubygems