Sha256: ecb59104fa720a10f9ef459834d263e491c7d84833b44e0aedc456f75254a505
Contents?: true
Size: 617 Bytes
Versions: 16
Compression:
Stored size: 617 Bytes
Contents
module ActiveAdmin module Views class SidebarSection < Panel builder_method :sidebar_section # Takes a ActiveAdmin::Sidebar::Section instance def build(section) @section = section super(@section.title, :icon => @section.icon) self.id = @section.id build_sidebar_content end protected def build_sidebar_content if @section.block rvalue = instance_eval(&@section.block) self << rvalue if rvalue.is_a?(String) else text_node render(@section.partial_name) end end end end end
Version data entries
16 entries across 16 versions & 3 rubygems