Sha256: 1f8d3c45016e22e157ceeec12d1a218ac65fca3bfffbb5846d4e55e26b52ca58
Contents?: true
Size: 816 Bytes
Versions: 53
Compression:
Stored size: 816 Bytes
Contents
module Effective module EffectiveDatatable module Dsl def bulk_actions(&block) define_method('initialize_bulk_actions') { dsl_tool.instance_exec(&block) } end def charts(&block) define_method('initialize_charts') { dsl_tool.instance_exec(&block) } end def collection(&block) define_method('initialize_collection') { self._collection = dsl_tool.instance_exec(&block) } end def datatable(&block) define_method('initialize_datatable') do dsl_tool.in_datatables_do_block = true dsl_tool.instance_exec(&block) dsl_tool.in_datatables_do_block = false end end def filters(&block) define_method('initialize_filters') { dsl_tool.instance_exec(&block) } end end end end
Version data entries
53 entries across 53 versions & 1 rubygems