Class: ActiveAdmin::Views::Sidebar

Inherits:
Component
  • Object
show all
Defined in:
lib/active_admin/views/components/sidebar.rb

Instance Method Summary collapse

Instance Method Details

#build(sections, attributes = {}) ⇒ Object



8
9
10
11
# File 'lib/active_admin/views/components/sidebar.rb', line 8

def build(sections, attributes = {})
  super(attributes)
  sections.map(&method(:sidebar_section))
end