Class: IronAdmin::Layout::NavbarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- IronAdmin::Layout::NavbarComponent
- Defined in:
- app/components/iron_admin/layout/navbar_component.rb
Overview
Renders the top navigation bar.
Instance Method Summary collapse
-
#initialize(current_user: nil) ⇒ NavbarComponent
constructor
A new instance of NavbarComponent.
Constructor Details
#initialize(current_user: nil) ⇒ NavbarComponent
Returns a new instance of NavbarComponent.
8 9 10 |
# File 'app/components/iron_admin/layout/navbar_component.rb', line 8 def initialize(current_user: nil) @current_user = current_user end |