def raw_menu_data(menu, sub = false)
			if menu.is_a?(Integer)
				data =
					if sub 
						MenuOption.where(:parent_id => MenuOption.find(menu).option_id)
					else 
						MenuOption.where(:menu_id => menu, :parent_id => nil)
					end
			else
				m = Menu.find_by_key(menu)
				data =
					if sub 
						MenuOption.where(:parent_id => MenuOption.find(m[:id]).option_id)
					else 
						MenuOption.where(:menu_id => m[:id], :parent_id => nil)
					end
			end

			data

		end
def raw_menu_data(menu, sub = false)
			if menu.is_a?(Integer)
				data =
					if sub 
						MenuOption.where(:parent_id => MenuOption.find(menu).option_id)
					else 
						MenuOption.where(:menu_id => menu, :parent_id => nil)
					end
			else
				m = Menu.find_by_key(menu)
				data =
					if sub 
						MenuOption.where(:parent_id => MenuOption.find(m[:id]).option_id)
					else 
						MenuOption.where(:menu_id => m[:id], :parent_id => nil)
					end
			end

			data

		end
returns the menu in a raw json format
 Params:
 +menu+:: the key of the menu that you want to return
 +sub+:: boolean as to wether the menu is a sub menu or not