Sha256: e344c36882e60665e6b18f0f3aa4ae7ab53b7bda0553cfe3b3f73df864ae8be2

Contents?: true

Size: 843 Bytes

Versions: 44

Compression:

Stored size: 843 Bytes

Contents

module Effective
  module EffectiveDatatable
    module Dsl

      def bulk_actions(&block)
        define_method('initialize_bulk_actions') { dsl_tool.instance_exec(&block); dsl_tool.bulk_actions_col }
      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

44 entries across 44 versions & 1 rubygems

Version Path
effective_datatables-4.4.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.25 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.24 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.23 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.22 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.21 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.20 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.19 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.18 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.17 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.16 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.15 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.14 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.13 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.12 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.11 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.10 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.3.9 app/models/effective/effective_datatable/dsl.rb