Sha256: ebe42c16258e2ad348cf4f52048a35f85f8cc49c3fe6bbbfd0d276768ad38a7a
Contents?: true
Size: 469 Bytes
Versions: 46
Compression:
Stored size: 469 Bytes
Contents
module GovukContentModels module ActionProcessors class NewVersionProcessor < BaseProcessor def process? edition.published? end def process convert_to = event_attributes[:convert_to] @edition = if !convert_to.nil? edition.build_clone(convert_to.to_s.camelize.constantize) else edition.build_clone end end def record_action? !!edition end end end end
Version data entries
46 entries across 46 versions & 1 rubygems