Embed layout_parts in layout and correct typo
This commit is contained in:
1 parent
86443661e9
commit
20afb23a5f
4 files changed
+4
-8
No files matched your search
@@ -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
|
||||
|
||||
@@ -9,6 +9,6 @@ class LayoutPart
|
||||
field :class_tag
|
||||
field :content
|
||||
|
||||
belongs_to :layout
|
||||
embedded_in :layout
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user