Module: EffectiveDatatablesControllerHelper

Defined in:
app/helpers/effective_datatables_controller_helper.rb

Overview

These are expected to be called by a developer. They are part of the datatables DSL.

Instance Method Summary collapse

Instance Method Details

#render_datatable_index(datatable) ⇒ Object



6
7
8
9
10
11
# File 'app/helpers/effective_datatables_controller_helper.rb', line 6

def render_datatable_index(datatable)
  raise 'expected Effective::Datatable' unless datatable.kind_of?(Effective::Datatable)

  @datatable = datatable
  render file: 'effective/datatables/index'
end