Added rake for default locale

This commit is contained in:
saurabhbhatia 2013-11-29 18:51:18 +08:00
parent 6e9c21781c
commit ee1246caa4
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
namespace :default_locale do
task :reset => :environment do
site = Site.update_all({:default_locale => nil})
puts "Default Locale Reset"
end
end