Sha256: 8595c5293ff9285b0910913f2ffa6f29e08275b46cf2fb5b0cf3f8fbd63a2d84
Contents?: true
Size: 651 Bytes
Versions: 35
Compression:
Stored size: 651 Bytes
Contents
module Effective module EffectiveDatatable module Dsl module BulkActions def bulk_action(*args) datatable._bulk_actions.push(content_tag(:li, link_to(*args))) end def bulk_download(*args) datatable._bulk_actions.push(content_tag(:li, link_to(*args), 'data-authenticity-token' => form_authenticity_token)) end def bulk_action_divider datatable._bulk_actions.push(content_tag(:li, '', class: 'divider', role: 'separator')) end def bulk_action_content(&block) datatable._bulk_actions.push(block.call) end end end end end
Version data entries
35 entries across 35 versions & 1 rubygems