<% list_params.each do |attr| %> <% if !attr.is_a?(Hash) && sortable?(model, attr) %> <% case guess_field_type(model, attr) when 'string', 'text' %> <% when 'integer', 'number', 'decimal' %> <% when 'date', 'datetime' %>
<% when 'boolean' %> <% end %> <% elsif @belongs_to_fields.include?(attr) || @has_one_fields.include?(attr) %> <% if "SlashAdmin::Models::#{attr.to_s.classify.pluralize}Controller".constantize.new.autocomplete_params.present? %> <% else %>   <% end %> <% else %>   <% end %> <% end %>