lib/active_admin/views/header.rb in activeadmin-0.6.6 vs lib/active_admin/views/header.rb in activeadmin-1.0.0.pre1

- old
+ new

@@ -1,11 +1,11 @@ module ActiveAdmin module Views class Header < Component def build(namespace, menu) - super(:id => "header") + super(id: "header") @namespace = namespace @menu = menu @utility_menu = @namespace.fetch_menu(:utility_navigation) @@ -18,14 +18,14 @@ def build_site_title insert_tag view_factory.site_title, @namespace end def build_global_navigation - insert_tag view_factory.global_navigation, @menu, :class => 'header-item tabs' + insert_tag view_factory.global_navigation, @menu, class: 'header-item tabs' end def build_utility_navigation - insert_tag view_factory.utility_navigation, @utility_menu, :id => "utility_nav", :class => 'header-item tabs' + insert_tag view_factory.utility_navigation, @utility_menu, id: "utility_nav", class: 'header-item tabs' end end end end