Sha256: c6353b1733b55fa0c802a0b7778d8f51b90e43952f41062cda68acb7a886eac7
Contents?: true
Size: 610 Bytes
Versions: 21
Compression:
Stored size: 610 Bytes
Contents
# -*- encoding : utf-8 -*- require_relative "lib/skin" class Skin def delete_deprecated_skin_cards skin_cards.each do |name_parts| next if !Card.fetch(name_parts) || !Card.fetch(name_parts).pristine? delete_card name_parts end end def skin_cards [[skin_name, "bootswatch theme"], [skin_name, "style"], [skin_name, "variables"]] end end class DeleteDeprecatedSkinCards < Cardio::Migration::Core def up Skin.each(&:delete_deprecated_skin_cards) Skin.new("bootstrap default").delete_deprecated_skin_cards delete_card "default bootstrap skin" end end
Version data entries
21 entries across 21 versions & 1 rubygems