From 2757044c321b86d6e9b4163995ecc30b609b0080 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 3 Dec 2012 17:49:26 +0800 Subject: [PATCH] Forgot to save the page_parts --- app/models/page.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/page.rb b/app/models/page.rb index 404e486f..09f7899d 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -38,6 +38,7 @@ class Page < Item current_part.kind = menu_part.kind current_part.public_r_tag = menu_part.public_r_tag current_part.public_r_tag_object_id = menu_part.public_r_tag_object_id + current_part.save else current_part.update_attributes(:kind => menu_part.kind, :public_r_tag => menu_part.public_r_tag, :public_r_tag_object_id => menu_part.public_r_tag_object_id) end