From db07eefb92bb2e116e9ea37f54fac4d7c4e2acfb Mon Sep 17 00:00:00 2001 From: f Date: Tue, 18 Jun 2024 16:06:59 -0300 Subject: [PATCH] feat: poder pasar data a un checkbox --- app/views/bootstrap/_custom_checkbox.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/bootstrap/_custom_checkbox.haml b/app/views/bootstrap/_custom_checkbox.haml index ae35caf5..73910a6f 100644 --- a/app/views/bootstrap/_custom_checkbox.haml +++ b/app/views/bootstrap/_custom_checkbox.haml @@ -1,6 +1,6 @@ :ruby help_id = "#{id}_help" - checkbox_attributes = local_assigns.slice(:id, :type, :name, :value, :required, :checked) + checkbox_attributes = local_assigns.slice(:id, :type, :name, :value, :required, :checked, :data) checkbox_attributes[:type] ||= 'checkbox' .custom-control{ class: "custom-#{checkbox_attributes[:type]}" }