Remove extra end
This commit is contained in:
parent
5c7f1aa164
commit
4f9aa63045
|
@ -31,8 +31,7 @@ class Page < Item
|
|||
page_design.layout.layout_parts.each do |layout_part|
|
||||
current_part = self.page_parts.detect{|page_part| page_part.name.eql?(layout_part.name)}
|
||||
current_part = self.page_parts.build(:name => layout_part.name) unless current_part
|
||||
current_part.save if current_part.new_record?
|
||||
end
|
||||
current_part.save if current_part.new_record?
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue