fix segment fault

This commit is contained in:
Kaito 2011-08-12 18:11:51 +08:00
parent f6ae58cef4
commit 16001fb2c9
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ class Admin::DesignsController < ApplicationController
temp_file.write zip_file.read(zip_name + '/' + title) temp_file.write zip_file.read(zip_name + '/' + title)
debugger debugger
design.build_layout design.build_layout
design.layout = temp_file design.layout.file = temp_file
['themes', 'javascripts', 'images'].each do |type| ['themes', 'javascripts', 'images'].each do |type|
eval("design.#{type}").each do |object| eval("design.#{type}").each do |object|
title = object.file_filename title = object.file_filename