Permalink
Browse files

see Enumerable#any?

  • Loading branch information...
1 parent f7e4857 commit 547ca666a33a4a07f2a3f4188d92e7bf199e1456 @zzak zzak committed Mar 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.rb
View
@@ -106,7 +106,7 @@
- @menu.each do |me|
option value="/p/#{me}?#article"
#{me.capitalize.sub('_', ' ')}
- - if @toc && (@toc.count > 1)
+ - if @toc and @toc.any?
h2 Chapters
ol
- @toc.each do |toc|

0 comments on commit 547ca66

Please sign in to comment.