Sha256: 41a2115c2b6bbb15df2563358b9fbd2bc539d64617df82112e085ca7909f463b
Contents?: true
Size: 535 Bytes
Versions: 7
Compression:
Stored size: 535 Bytes
Contents
# -*- encoding : utf-8 -*- class Wagn::CoreMigration < Wagn::Migration def migration_paths Wagn::Migration.paths :core_cards end def schema_mode Wagn::Migration.schema_mode :core_cards end def import_json filename Wagn.config.action_mailer.perform_deliveries = false raw_json = File.read( data_path filename ) json = JSON.parse raw_json Card.merge_list json["card"]["value"], :output_file=>File.join(data_path,"unmerged_#{ filename }") #fixme - output file should not be in gem! end end
Version data entries
7 entries across 7 versions & 1 rubygems