Sha256: dbfab614e6d3b31d6ff87345dc99ed1d3ec8d0a1bc79177563a0362e7814b57b
Contents?: true
Size: 346 Bytes
Versions: 12
Compression:
Stored size: 346 Bytes
Contents
# -*- encoding : utf-8 -*- class ImportHelpText < Cardio::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
12 entries across 12 versions & 1 rubygems