lib/simple_navigation/renderer/base.rb in simple-navigation-2.5.4 vs lib/simple_navigation/renderer/base.rb in simple-navigation-2.6.0
- old
+ new
@@ -32,10 +32,14 @@
!!options[:expand_all]
end
def level
options[:level] || :all
+ end
+
+ def skip_if_empty?
+ !!options[:skip_if_empty]
end
def include_sub_navigation?(item)
consider_sub_navigation?(item) && expand_sub_navigation?(item)
end
@@ -79,6 +83,6 @@
end
end
end
-end
\ No newline at end of file
+end