diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/sidebar_helper.rb | 2 |
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 |