Sha256: b3553873ca40d2929748bdecc48583d8f21f80025def3fe5062950746c01a2c4
Contents?: true
Size: 391 Bytes
Versions: 12
Compression:
Stored size: 391 Bytes
Contents
# -*- encoding : utf-8 -*- class UpdateStylesheets < Cardio::Migration::Core def up dir = File.join data_path, "1.12_stylesheets" %w[common traditional].each do |sheetname| card = Card["style: #{sheetname}"] card.update! content: File.read("#{dir}/#{sheetname}.scss") if card&.pristine? end if (c = Card["*all+*style+file"]) c.delete! end end end
Version data entries
12 entries across 12 versions & 1 rubygems