stadtratmonitor/lib/tasks/import_papers.rake
2015-05-17 18:30:03 +02:00

10 lines
257 B
Ruby

namespace :import_papers do
desc 'Import Paper records from CSV'
task :from_morph => :environment do
require 'open-uri'
Importer.all.each do |importer|
uri = URI.parse(importer.url)
Paper.import_from_json(uri.read)
end
end
end