summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/menu.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/menu.rb b/lib/menu.rb
index c156e07..4da8441 100644
--- a/lib/menu.rb
+++ b/lib/menu.rb
@@ -31,7 +31,7 @@ class Menu
#
def submenu(item_name=nil)
if item_name
- self.children.detect {|child| child.name == item_name} || Menu.new
+ self.children.detect {|child| child.name == item_name}
else
self.children
end