Merge branch 'ldap' of github.com:Rulingcom/orbit into ldap
This commit is contained in:
commit
852314c17c
|
@ -2,9 +2,10 @@
|
||||||
|
|
||||||
namespace :designs do
|
namespace :designs do
|
||||||
task :change_to, [:design_id] => [:environment] do |t, args|
|
task :change_to, [:design_id] => [:environment] do |t, args|
|
||||||
# design = Design.find(args[:design_id])
|
design = Design.find(args[:design_id])
|
||||||
|
theme_id = design.themes.first.id
|
||||||
Page.all.each do |page|
|
Page.all.each do |page|
|
||||||
page.update_attribute('design_id', args[:design_id])
|
page.update_attributes({design_id: args[:design_id], theme_id: (theme_id unless page.root?)})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Reference in New Issue