<% if AdminData::ActiveRecordUtil.declared_has_one_association_names(klass).any? %>

has_one : <%= admin_data_has_one(model, klass).html_safe %>

<% end %>