Sha256: 9dc8d40239e220ea13397b9504086a86e4d22325aa284f46356c73ccdf3530d1
Contents?: true
Size: 337 Bytes
Versions: 10
Compression:
Stored size: 337 Bytes
Contents
# -*- encoding : utf-8 -*- class ImportHelpText < Wagn::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
10 entries across 10 versions & 1 rubygems