From ea5f89e55c7afde4bf2d6719b0afa8a878082fb5 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 12 Feb 2013 23:46:35 -0800 Subject: misc fixes to get working in production mode using Thin. --- lib/menu.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3