Sha256: 41a3affd0cf30898193915421f1bb16dabcde2ff3363c086e86bd14e6f83279f
Contents?: true
Size: 337 Bytes
Versions: 17
Compression:
Stored size: 337 Bytes
Contents
# -*- encoding : utf-8 -*- class ImportHelpText < Card::CoreMigration def up dir = data_path '1.11_help_text.json' data = JSON.parse( File.read dir ) data.each do |atom| c = atom['card'] Card.merge c['name'], { :type=>c['type'], :content=>atom['views'][0]['parts'] }, :pristine=>true end end end
Version data entries
17 entries across 17 versions & 1 rubygems