Sha256: 85604efbb8b247634dbde0b749d363415572e22b9a012419ed397defb8e8347c
Contents?: true
Size: 683 Bytes
Versions: 12
Compression:
Stored size: 683 Bytes
Contents
module Effective module EffectiveDatatable module Dsl module BulkActions # These get added into the view as helpers # To be called inside datatable { bulk_actions_column do .. end } def bulk_action(*args) concat content_tag(:li, link_to(*args)) end def bulk_download(*args) concat content_tag(:li, link_to(*args), 'data-authenticity-token' => form_authenticity_token) end def bulk_action_divider concat content_tag(:li, '', class: 'divider', role: 'separator') end def bulk_action_content(&block) concat block.call end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems