lib/active_admin/menu.rb in activeadmin-1.0.0.pre1 vs lib/active_admin/menu.rb in activeadmin-1.0.0.pre2
- old
+ new
@@ -25,9 +25,10 @@
end
def [](id)
@children[normalize_id(id)]
end
+
def []=(id, child)
@children[normalize_id(id)] = child
end
# Recursively builds any given menu items. There are two syntaxes supported,