Class: ActiveAdmin::Views::SidebarSection
- Defined in:
- lib/active_admin/views/components/sidebar_section.rb
Instance Method Summary collapse
-
#build(section) ⇒ Object
Takes a ActiveAdmin::Sidebar::Section instance.
Methods inherited from Panel
Methods inherited from Component
Constructor Details
This class inherits a constructor from ActiveAdmin::Component
Instance Method Details
#build(section) ⇒ Object
Takes a ActiveAdmin::Sidebar::Section instance
8 9 10 11 12 13 |
# File 'lib/active_admin/views/components/sidebar_section.rb', line 8 def build(section) @section = section super(@section.title, :icon => @section.icon) self.id = @section.id end |