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


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

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