Sha256: 4a78cc5ae22fe64ab9e6a60dc32a232aa27942699410070d950c48e51d4c1561
Contents?: true
Size: 326 Bytes
Versions: 60
Compression:
Stored size: 326 Bytes
Contents
# -*- encoding : utf-8 -*- class ImportHelpText < Card::Migration::Core 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
60 entries across 60 versions & 1 rubygems