Sha256: 51165cb47b23ce3c12c97d04e7a6918e5db8c46f330b5c2fc8163c4fff019e40
Contents?: true
Size: 460 Bytes
Versions: 18
Compression:
Stored size: 460 Bytes
Contents
class Pulitzer::CreatePostTypeFreeFormSections attr_accessor :post_type, :ffst, :old_label def initialize(ffst) self.post_type = ffst.post_type self.ffst = ffst end def call post_type.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
18 entries across 18 versions & 1 rubygems