Module: Datagrid::Columns

Defined in:
lib/datagrid/columns.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods Classes: Column, DataRow

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/datagrid/columns.rb', line 9

def self.included(base)
  base.extend         ClassMethods
  base.class_eval do

    include Datagrid::Core

    class_attribute :default_column_options, :instance_writer => false
    self.default_column_options = {}

    class_attribute :batch_size
    self.batch_size = 1000

    class_attribute :columns_array
    self.columns_array = []

    class_attribute :cached
    self.cached = false


    class_attribute :decorator, instance_writer: false

  end
  base.send :include, InstanceMethods
end