diff --git a/app/models/concerns/with_blocks.rb b/app/models/concerns/with_blocks.rb index 78ebf136b34be1e34b4656677d1988e74e114e44..ffb41b0607503637f15cd844fa04b62816c9cb69 100644 --- a/app/models/concerns/with_blocks.rb +++ b/app/models/concerns/with_blocks.rb @@ -25,9 +25,6 @@ module WithBlocks # Basic rule is: TOC if 2 titles or more def show_toc? - blocks.published - .collect(&:title) - .reject(&:blank?) - .many? + headings.many? end end