lib/avo/menu/builder.rb in avo-2.15.3.pre.1.data.attrs.to.sidebar.items vs lib/avo/menu/builder.rb in avo-2.15.3

- old
+ new

@@ -20,14 +20,12 @@ @menu.name = name @menu.items = items end # Adds a link - def link(name, path = nil, **args) - path ||= args[:path] - @menu.items << Avo::Menu::Link.new(name: name, path: path, **args) + def link(name, **args) + @menu.items << Avo::Menu::Link.new(name: name, **args) end - alias_method :link_to, :link # Validates and adds a resource def resource(name, **args) name = name.to_s.singularize res = Avo::App.guess_resource(name)