Class: ActiveAdmin::Views::Scopes

Inherits:
Component show all
Defined in:
lib/active_admin/views/components/scopes.rb

Overview

Renders a collection of ActiveAdmin::Scope objects as a simple list with a seperator

Instance Method Summary collapse

Methods inherited from Component

#initialize, #tag_name

Constructor Details

This class inherits a constructor from ActiveAdmin::Component

Instance Method Details

#build(scopes) ⇒ Object



9
10
11
12
13
# File 'lib/active_admin/views/components/scopes.rb', line 9

def build(scopes)
  scopes.each do |scope|
    build_scope(scope)
  end
end