From f1c1aa59f5b752671e0990f1e574b73ef2d02507 Mon Sep 17 00:00:00 2001 From: James Lam Date: Fri, 20 Mar 2026 16:10:00 -0600 Subject: [PATCH] fix typo from commit 9b10064 --- app/helpers/effective_datatables_private_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/effective_datatables_private_helper.rb b/app/helpers/effective_datatables_private_helper.rb index dd2ddb2..ff92ae5 100644 --- a/app/helpers/effective_datatables_private_helper.rb +++ b/app/helpers/effective_datatables_private_helper.rb @@ -48,7 +48,7 @@ def datatable_new_resource_button(datatable, name, column) action = { action: :new, class: "btn #{btn_class}", 'data-remote': true } if column[:actions][:new].kind_of?(Hash) # This might be active_record_array_collection? - actions = action.merge(column[:actions][:new]) + action = action.merge(column[:actions][:new]) effective_resource = (datatable.effective_resource || datatable.fallback_effective_resource) klass = (column[:actions][:new][:klass] || effective_resource&.klass || datatable.collection_class)