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

Version Path
effective_datatables-3.6.3 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.6.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.6.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.5.4 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.5.3 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.5.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.4 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.3 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.5.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.2.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.4.8 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.1.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.4.7 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.1.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.4.6 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.0.6 app/models/effective/effective_datatable/dsl.rb
effective_datatables-3.4.5 app/models/effective/effective_datatable/dsl.rb