Sha256: 0c24a6d1773501efa0a8e601c52401777c7972338f96cc11a360dbcdafc7c438
Contents?: true
Size: 372 Bytes
Versions: 52
Compression:
Stored size: 372 Bytes
Contents
class Pulitzer::DestroyPostTypeFreeFormSections attr_accessor :post_type, :ffst def initialize(ffst) self.post_type = ffst.post_type self.ffst = ffst end def call post_type.posts.each do |post| post.preview_version.free_form_sections.where(free_form_section_type_id: ffst.id).each do |ffs| ffs.destroy end end end end
Version data entries
52 entries across 52 versions & 1 rubygems