lib/simple_navigation/item_container.rb in simple-navigation-2.1.0 vs lib/simple_navigation/item_container.rb in simple-navigation-2.2.0
- old
+ new
@@ -64,12 +64,12 @@
return nil
end
# Renders the items in this ItemContainer using the configured renderer.
#
- # Set <tt>include_sub_navigation</tt> to true if you want to nest the sub_navigation into the active parent_navigation
- def render(include_sub_navigation=false)
- self.renderer.new.render(self, include_sub_navigation)
+ # The options are the same as in the view's render_navigation call (they get passed on)
+ def render(options={})
+ self.renderer.new(options).render(self)
end
# Returns true if any of this container's items is selected.
#
def selected?
\ No newline at end of file