aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/sidebar_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/sidebar_helper.rb')
-rw-r--r--app/helpers/sidebar_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/sidebar_helper.rb b/app/helpers/sidebar_helper.rb
index e8e076a..97bb560 100644
--- a/app/helpers/sidebar_helper.rb
+++ b/app/helpers/sidebar_helper.rb
@@ -15,6 +15,6 @@ module SidebarHelper
def page_has_side_body?(page)
part = page.part_with_title("Side Body")
- return part.present? && !part.body.empty?
+ return part.present? && !part.try(:body).try(:empty?)
end
end