Merge branch 'design_team' into ldap

This commit is contained in:
Christophe Vilayphiou 2012-05-14 09:07:36 +08:00
commit 9837f8eae7
1 changed files with 11 additions and 0 deletions

11
lib/tasks/designs.rake Normal file
View File

@ -0,0 +1,11 @@
# encoding: utf-8
namespace :designs do
task :change_to, [:design_id] => [:environment] do |t, args|
# design = Design.find(args[:design_id])
Page.all.each do |page|
page.update_attribute('design_id', args[:design_id])
end
end
end