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

- (Object) build(resource)



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