Sha256: 90f0d3ca55256fe33f610b0c35b5d9aa814654323d6925365276fd71ca5b2363
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
class SetCamaPostDecoratorClass < ActiveRecord::Migration 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
4 entries across 4 versions & 1 rubygems