Module: Spotlight::TranslationsHelper

Defined in:
app/helpers/spotlight/translations_helper.rb

Overview

Helper module for the Translations admin UI

Instance Method Summary collapse

Instance Method Details

#non_custom_metadata_fieldsObject



7
8
9
10
11
12
13
# File 'app/helpers/spotlight/translations_helper.rb', line 7

def 
  custom_field_keys = current_exhibit.custom_fields.pluck(:field)

  current_exhibit.blacklight_config.show_fields.reject do |key, _|
    custom_field_keys.include?(key)
  end
end