Embed layout_parts in layout and correct typo

This commit is contained in:
chris2tof committed 2011-08-18 16:27:04 +08:00
1 parent 86443661e9
commit 20afb23a5f
4 files changed
+4 -8

No files matched your search

@@ -34,7 +34,6 @@ class Admin::PurchasesController < ApplicationController
temp_file.write response.body
temp_file.rewind
zip_name = response['content-disposition'].split('filename=')[1].gsub(/[\\\"]|.zip/, '') rescue ''
debugger
unzip_design(temp_file, zip_name)
temp_file.close
temp_file.unlink
@@ -61,11 +60,12 @@ class Admin::PurchasesController < ApplicationController
temp = File.new(dir + '/' + title, 'w+')
temp.write orig_zip.read(zip_name + '/' + title)
design.layout.file = temp
design.layout.to_save = true
title = design.structure_css_filename
temp = File.new(dir + '/' + title, 'w+')
temp.write orig_zip.read(zip_name + '/' + title)
design.layout.file = temp
design.structure_css = temp
['themes', 'javascripts', 'images'].each do |type|
eval("design.#{type}").each do |object|