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