new page_content app

This commit is contained in:
unknown committed 2012-02-21 19:22:42 +08:00
1 parent b0834c0c62
commit 9b001aa6c3
66 files changed
+1367

No files matched your search

+1
View File
@@ -7,6 +7,7 @@ class Page < Item
belongs_to :design
belongs_to :module_app
has_many :page_parts, :autosave => true, :dependent => :destroy
has_many :page_contexts, :autosave => true, :dependent => :destroy
accepts_nested_attributes_for :page_parts, :allow_destroy => true
before_save :create_parts