Class: ActiveAdmin::BatchActions::ResourceSelectionCell

Inherits:
Component
  • Object
show all
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



23
24
25
# File 'lib/active_admin/batch_actions/views/selection_cells.rb', line 23

def build(resource)
  input type: "checkbox", id: "batch_action_item_#{resource.id}", value: resource.id, class: "batch-actions-resource-selection", name: "collection_selection[]"
end