Class: ActiveAdmin::Views::IndexAsNestedSet
- Inherits:
-
IndexAsTable
- Object
- IndexAsTable
- ActiveAdmin::Views::IndexAsNestedSet
- Defined in:
- lib/active_admin/views/index_as_nested_set.rb
Overview
Index as a Nested Set
Shows index page as a tree
index :as => :nested_set do |product|
Another options for table
link_to(image_tag(product.image_path), admin_products_path(product))
end
Instance Method Summary collapse
Instance Method Details
#build(page_presenter, collection) ⇒ Object
16 17 18 |
# File 'lib/active_admin/views/index_as_nested_set.rb', line 16 def build(page_presenter, collection) super page_presenter, get_nested_set( resource_class ) end |