lib/active_admin/views/components/sidebar_section.rb in activeadmin-1.0.0.pre1 vs lib/active_admin/views/components/sidebar_section.rb in activeadmin-1.0.0.pre2

- old
+ new

@@ -5,13 +5,18 @@ builder_method :sidebar_section # Takes a ActiveAdmin::SidebarSection instance def build(section) @section = section - super(@section.title, icon: @section.icon) + super(@section.title) add_class @section.custom_class if @section.custom_class self.id = @section.id build_sidebar_content + end + + # Renders attributes_table_for current resource + def attributes_table(*args, &block) + attributes_table_for resource, *args, &block end protected def build_sidebar_content