From 16001fb2c9d0ea7ceac3909e621766dc609f73dc Mon Sep 17 00:00:00 2001 From: Kaito Date: Fri, 12 Aug 2011 18:11:51 +0800 Subject: [PATCH] fix segment fault --- app/controllers/admin/designs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/designs_controller.rb b/app/controllers/admin/designs_controller.rb index f5026baa..b9e9e4f4 100644 --- a/app/controllers/admin/designs_controller.rb +++ b/app/controllers/admin/designs_controller.rb @@ -32,7 +32,7 @@ class Admin::DesignsController < ApplicationController temp_file.write zip_file.read(zip_name + '/' + title) debugger design.build_layout - design.layout = temp_file + design.layout.file = temp_file ['themes', 'javascripts', 'images'].each do |type| eval("design.#{type}").each do |object| title = object.file_filename