lib/active_admin/dashboards.rb in activeadmin-0.5.1 vs lib/active_admin/dashboards.rb in activeadmin-0.6.0

- old
+ new

@@ -56,14 +56,13 @@ def add_to_menu(namespace, menu) return unless ActiveAdmin::Dashboards.built? dashboard_path = namespace.root? ? :dashboard_path : "#{namespace.name}_dashboard_path".to_sym - item = MenuItem.new :id => "dashboard", - :label => proc{ I18n.t("active_admin.dashboard") }, - :url => dashboard_path, - :priority => 1 - menu.add item + menu.add :id => "dashboard", + :label => proc{ I18n.t("active_admin.dashboard") }, + :url => dashboard_path, + :priority => 1 end end end end