Module: Adminterface::Extensions::BatchActions::ResourceSelectionCell

Defined in:
lib/adminterface/extensions/batch_actions/views/selection_cells.rb

Instance Method Summary collapse

Instance Method Details

#build(resource) ⇒ Object



23
24
25
26
# File 'lib/adminterface/extensions/batch_actions/views/selection_cells.rb', line 23

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