Sha256: 73bc6cbfd05ef48596ad283e83a7170ed8b7919fb05151b46c671f43b9dade42
Contents?: true
Size: 463 Bytes
Versions: 3
Compression:
Stored size: 463 Bytes
Contents
class SetCamaPostDecoratorClass < CamaManager.migration_class def change CamaleonCms::Site.reset_column_information CamaleonCms::PostType.reset_column_information CamaleonCms::Site.find_each do |site| post_type = site.post_types.where(slug: 'commerce').first if post_type post_type.set_options(cama_post_decorator_class: 'Plugins::Ecommerce::ProductDecorator') post_type.save(validate: false) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems