Sha256: 97144def9c36b4f03f73b9076326187c7e950a291c125478fb5b3bdc0154ef57
Contents?: true
Size: 327 Bytes
Versions: 14
Compression:
Stored size: 327 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
14 entries across 14 versions & 1 rubygems