Sha256: c6724ed963d612bfd6ae518d43d89920882aa0adfe3ef9703d557227a8a46430
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
# -*- encoding : utf-8 -*- class ImportHelpText < Wagn::Migration def up json = File.read( File.join Wagn.gem_root, 'db/migrate_cards/data/1.11_help_text.json' ) data = JSON.parse json 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
3 entries across 3 versions & 1 rubygems