lib/avo/menu/builder.rb in avo-2.16.1.pre.1.nativefields vs lib/avo/menu/builder.rb in avo-2.17.0
- old
+ new
@@ -55,10 +55,10 @@
end
# Add all the resources
def all_resources(**args)
Avo::App.resources_for_navigation.each do |res|
- resource res.model_class, **args
+ resource res.route_key, **args
end
end
# Add all the dashboards
def all_dashboards(**args)