app/helpers/katalyst/navigation/editor/menu.rb in katalyst-navigation-1.0.3 vs app/helpers/katalyst/navigation/editor/menu.rb in katalyst-navigation-1.1.0

- old
+ new

@@ -27,9 +27,13 @@ def default_options(options) add_option(options, :data, :controller, MENU_CONTROLLER) add_option(options, :data, :action, ACTIONS) + depth = options.delete(:depth) || menu.depth + + add_option(options, :data, :"#{MENU_CONTROLLER}-max-depth-value", depth) if depth + options end end end end