Class: ActiveAdmin::BatchActions::ResourceSelectionCell
- Inherits:
-
Component
- Object
- Arbre::Component
- Component
- ActiveAdmin::BatchActions::ResourceSelectionCell
- Defined in:
- lib/active_admin/batch_actions/views/selection_cells.rb
Overview
Creates the checkbox used to select a resource in the collection selection
Instance Method Summary collapse
Instance Method Details
#build(resource) ⇒ Object
19 20 21 |
# File 'lib/active_admin/batch_actions/views/selection_cells.rb', line 19 def build(resource) input :type => "checkbox", :id => "batch_action_item_#{resource.id}", :value => resource.id, :class => "collection_selection", :name => "collection_selection[]" end |