Permalink
Browse files

Added task to delete all tolk data, for testing purpose

  • Loading branch information...
1 parent 94cde84 commit 6b1048ae115d8ca93b42dc6354050d0c52081919 @hermesdt committed Jan 29, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/tasks/tolk_tasks.rake
@@ -7,6 +7,14 @@ namespace :tolk do
Rake::Task['tolk:sync'].invoke
Rake::Task['tolk:import'].invoke
end
+
+
+ desc "Delete all locales, translations and phrases (for developing purpose)"
+ task :clean_all => :environment do
+ Tolk::Locale.delete_all
+ Tolk::Translation.delete_all
+ Tolk::Phrase.delete_all
+ end
desc "Sync Tolk with the default locale's yml file"
task :sync => :environment do

0 comments on commit 6b1048a

Please sign in to comment.