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.7.4 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.7.3 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.7.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.7.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.7.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.6.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.6.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.6.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.7 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.6 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.5 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.4 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.3 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.2 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.1 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.5.0 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.6 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.5 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.4 app/models/effective/effective_datatable/dsl.rb
effective_datatables-4.4.3 app/models/effective/effective_datatable/dsl.rb