Class: IronAdmin::Layout::NavbarComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/iron_admin/layout/navbar_component.rb

Overview

Renders the top navigation bar.

Instance Method Summary collapse

Constructor Details

#initialize(current_user: nil) ⇒ NavbarComponent

Returns a new instance of NavbarComponent.

Parameters:

  • current_user (Object, nil) (defaults to: nil)

    Current user



8
9
10
# File 'app/components/iron_admin/layout/navbar_component.rb', line 8

def initialize(current_user: nil)
  @current_user = current_user
end