Class: AjaxDatatablesRails::AltApi::Datatable::ViewColumns
- Inherits:
-
Hash
- Object
- Hash
- AjaxDatatablesRails::AltApi::Datatable::ViewColumns
- Defined in:
- lib/ajax-datatables-rails/alt-api/datatable/view_columns.rb
Overview
DataTables can be really tricky to debug when attributes don’t align. I added this to help a little
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ajax-datatables-rails/alt-api/datatable/view_columns.rb', line 9 def [](key) super(key).tap do |r| if r.nil? Rails.logger.warn "-- Datatable view column key missing: #{key}" end end end |