Podwójny zestaw Turbolinks Turbolinks

var dataTable = $('.data-table').DataTable();
document.addEventListener("turbolinks:before-cache", function() {
  if (dataTable !== null) {
   dataTable.destroy();
   dataTable = null;
  }
});
yusuf_fazeri