Sha256: e00fc447686841b8dd7841383ffe39311ae26bf14ba116803cfd230002cf857d
Contents?: true
Size: 356 Bytes
Versions: 74
Compression:
Stored size: 356 Bytes
Contents
class Pulitzer::DestroyPostTypeContentElements attr_accessor :post_type, :ptcet def initialize(ptcet) self.post_type = ptcet.post_type self.ptcet = ptcet end def call post_type.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
74 entries across 74 versions & 1 rubygems