app/views/kuhsaft/pages/show.html.haml in kuhsaft-2.1.0 vs app/views/kuhsaft/pages/show.html.haml in kuhsaft-2.1.1
- old
+ new
@@ -7,10 +7,10 @@
-# TODO: refactor into scopes or simplify otherwise:
- @page.bricks.localized.select(&:valid?).each do |brick|
= render brick
- else
- - cache [@page, I18n.locale] do
+ - cache [@page, I18n.locale, @page.children] do
- unless @page.blank?
.page-content
-# TODO: refactor into scopes or simplify otherwise:
- @page.bricks.localized.select(&:valid?).each do |brick|
= render brick