Sha256: 9249ce49c34954c4bc3c377692df8146412c260bfcf2ec7f926a86029139f3fe
Contents?: true
Size: 388 Bytes
Versions: 32
Compression:
Stored size: 388 Bytes
Contents
class Pulitzer::DestroyPostTypeContentElements attr_accessor :post_type_version, :ptcet def initialize(ptcet) self.post_type_version = ptcet.post_type_version self.ptcet = ptcet end def call post_type_version.posts.each do |post| post.preview_version.content_elements.where(label: ptcet.label).each do |ce| ce.destroy end end end end
Version data entries
32 entries across 32 versions & 1 rubygems