Skip to content
Snippets Groups Projects
Commit 01767dc9 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

not necessarily unique

parent 8084d5b6
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,6 @@ module WithBlocks
# Basic rule is: TOC if 2 titles or more
def show_toc?
(blocks.collect(&:title).uniq.compact - ['']).many?
(blocks.collect(&:title) - ['']).many?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment