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

+1 -1
View File
@@ -3,7 +3,7 @@ class Layout < DesignFile
embedded_in :design
attr_reader :content
has_many :layout_parts
embeds_many :layout_parts
def content
self.file.read
+1 -1
View File
@@ -9,6 +9,6 @@ class LayoutPart
field :class_tag
field :content
belongs_to :layout
embedded_in :layout
end