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]}" }