lib/active_admin/menu.rb in activeadmin-1.0.0 vs lib/active_admin/menu.rb in activeadmin-1.1.0

- old
+ new

@@ -46,13 +46,13 @@ # menu.add label: 'Dashboard' # menu.add parent: 'Dashboard', label: 'My Child Dashboard' # def add(options) item = if parent = options.delete(:parent) - (self[parent] || add(label: parent)).add options - else - _add options.merge parent: self - end + (self[parent] || add(label: parent)).add options + else + _add options.merge parent: self + end yield(item) if block_given? item end