Sha256: 3f2e8bc710d64fbd8d55adbd91ccfe4ef3525c071194b6ebacbf7f9cd36636c8
Contents?: true
Size: 735 Bytes
Versions: 12
Compression:
Stored size: 735 Bytes
Contents
# fix sites still using no-longer supported skins and layouts class MigrateClassicSkinsToBootstrap < ActiveRecord::Migration[5.2] UNSUPPORTED_SKINS = %w[ classic_skin customized_classic_skin classic_bootstrap_skin simple_skin simple_bootstrap_skin ].freeze DEFAULT_SKIN = "yeti skin".freeze UNSUPPORTED_LAYOUT = "classic_layout".freeze DEFAULT_LAYOUT = "Default Layout".freeze def change style_rule = Card[:all, :style] if style_rule.first_name.key.in? UNSUPPORTED_SKINS style_rule.update! content: DEFAULT_SKIN end layout_rule = Card[:all, :layout] return unless layout_rule.first_name.key == UNSUPPORTED_LAYOUT layout_rule.update! content: DEFAULT_LAYOUT end end
Version data entries
12 entries across 12 versions & 1 rubygems