Sha256: 0b6c4bb8cf8db1d8640d3aad91c5dd1f93721bf7da907ac9d17ac5a9c80f360d
Contents?: true
Size: 412 Bytes
Versions: 34
Compression:
Stored size: 412 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| post.preview_version.free_form_sections.create do |ffs| ffs.name = ffst.name ffs.free_form_section_type = ffst end end end end
Version data entries
34 entries across 34 versions & 1 rubygems