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