Sha256: d8e0888832630ab0c692cf45487684c84fbde661242c7d37c18ec6b7689eb3bc
Contents?: true
Size: 493 Bytes
Versions: 32
Compression:
Stored size: 493 Bytes
Contents
class Pulitzer::UpdatePostTypeFreeFormSections attr_accessor :post_type_version, :ffst, :old_label def initialize(ffst, old_label=nil) self.post_type_version = ffst.post_type_version self.ffst = ffst self.old_label = old_label || ffst.label end def call post_type_version.posts.each do |post| post.preview_version.free_form_sections.where(free_form_section_type_id: ffst.id).each do |ffs| ffs.update(name: ffst.name) end end end end
Version data entries
32 entries across 32 versions & 1 rubygems