Sha256: 3a7907b50ff1685a1b2843990a03df673d086860db80a2a53a95fe9fd5bc7572
Contents?: true
Size: 777 Bytes
Versions: 12
Compression:
Stored size: 777 Bytes
Contents
# -*- encoding : utf-8 -*- class MenuCompatibility < Cardio::Migration::Core def up # Add bootswatch shared to old skins so that menu works bootswatch_shared = Card[:bootswatch_shared] Card.search(type_id: Card::SkinID) do |skin| if skin.item_cards.find do |item_card| item_card.codename == :style_bootstrap_compatible end skin.add_item! bootswatch_shared.name end end # Delete output files so all the styling and js changes take effect. # (this can be removed if/when later migrations update those things directly) %i[style script].each do |setting| Card.search( right_id: Card::MachineOutputID, left: { right: { codename: setting.to_s } } ).each(&:delete!) end end end
Version data entries
12 entries across 12 versions & 1 rubygems