Skip to content

Commit

Permalink
Added task to delete all tolk data, for testing purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
hermesdt committed Jan 29, 2012
1 parent 94cde84 commit 6b1048a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/tasks/tolk_tasks.rake
Expand Up @@ -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
Expand Down

0 comments on commit 6b1048a

Please sign in to comment.