app/helpers/spotlight/translations_helper.rb in blacklight-spotlight-3.5.0.4 vs app/helpers/spotlight/translations_helper.rb in blacklight-spotlight-3.6.0.beta1
- old
+ new
@@ -5,11 +5,9 @@
# Helper module for the Translations admin UI
module TranslationsHelper
def non_custom_metadata_fields
custom_field_keys = current_exhibit.custom_fields.pluck(:field)
- current_exhibit.blacklight_config.show_fields.reject do |key, _|
- custom_field_keys.include?(key)
- end
+ current_exhibit.blacklight_config.show_fields.except(*custom_field_keys)
end
end
end