From 6b936cf82f5357f97aaa909ee4f137b944080ffc Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 18 Apr 2009 19:52:42 +0200 Subject: added update_authors_on_pages task. run after importing authors --- lib/tasks/development_init.rake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/tasks/development_init.rake') diff --git a/lib/tasks/development_init.rake b/lib/tasks/development_init.rake index 00ef83a..cf97cc3 100644 --- a/lib/tasks/development_init.rake +++ b/lib/tasks/development_init.rake @@ -28,6 +28,12 @@ namespace :cccms do importer.import_authors end + desc "Update authors on pages" + task :update_authors_on_pages => :environment do |t| + i = ChaosImporter.new("#{RAILS_ROOT}/db/updates") + i.update_authors_on_pages + end + desc "Import the old XML Files" task :import_updates => :environment do |t| i = ChaosImporter.new("#{RAILS_ROOT}/db/updates") -- cgit v1.3