app/views/usuarios/_campo_filtrodepartamento_ids.html.erb
<% if f.object.grupo_ids.include?(Ability::GRUPO_OBSERVADOR_PARTE_CASOS) %>
<% estipo = "display: block" %>
<% else %>
<% estipo = "display: none" %>
<% end %>
<% col = Msip::Departamento.habilitados.map(&:id) |
f.object.filtrodepartamento_ids %>
<%= f.association :filtrodepartamento,
collection: Msip::Departamento.where(id: col),
label_method: :nombre,
value_method: :id,
input_html: { class: 'tom-select', multiple: true },
wrapper_html: { "style" => estipo },
include_blank: true
%>