Sha256: e403f8a027d381a2d8c792278ab000ed17ef63cb9797cf3ae391525b30daeead
Contents?: true
Size: 492 Bytes
Versions: 32
Compression:
Stored size: 492 Bytes
Contents
class Pulitzer::CreatePostTypeFreeFormSections attr_accessor :post_type_version, :ffst, :old_label def initialize(ffst) self.post_type_version = ffst.post_type_version self.ffst = ffst end def call post_type_version.posts.each do |post| if post.preview_version post.preview_version.free_form_sections.create do |ffs| ffs.name = ffst.name ffs.free_form_section_type = ffst end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems