Module: Effective::EffectiveDatatable::Dsl
- Included in:
- Datatable
- Defined in:
- app/models/effective/effective_datatable/dsl.rb,
app/models/effective/effective_datatable/dsl/charts.rb,
app/models/effective/effective_datatable/dsl/scopes.rb,
app/models/effective/effective_datatable/dsl/datatable.rb,
app/models/effective/effective_datatable/dsl/bulk_actions.rb
Defined Under Namespace
Modules: BulkActions, Charts, Datatable, Scopes
Instance Method Summary
collapse
Instance Method Details
#charts(&block) ⇒ Object
15
16
17
|
# File 'app/models/effective/effective_datatable/dsl.rb', line 15
def charts(&block)
define_method('initialize_charts') { instance_exec(&block) }
end
|
#datatable(&block) ⇒ Object
7
8
9
|
# File 'app/models/effective/effective_datatable/dsl.rb', line 7
def datatable(&block)
define_method('initialize_datatable') { instance_exec(&block) }
end
|
#scopes(&block) ⇒ Object
11
12
13
|
# File 'app/models/effective/effective_datatable/dsl.rb', line 11
def scopes(&block)
define_method('initialize_scopes') { instance_exec(&block) }
end
|