class Sirens::NamespacesList

Public Instance Methods

render_with(layout) click to toggle source

Building

# File lib/sirens/components/namespaces_list.rb, line 6
def render_with(layout)
    layout.render do |component|

        choices_tree do
            model component.model

            styles show_headers: true

            column label: '',
                get_image_block: proc{ |a_module| Icons.icon_for(a_module) }

            column label: 'Namespaces',
                get_text_block: proc{ |a_module| a_module.name }
        end

    end
end