Remove extra end

This commit is contained in:
chris 2012-12-03 18:45:32 +08:00
parent 5c7f1aa164
commit 4f9aa63045
1 changed files with 1 additions and 2 deletions

View File

@ -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