Class: Spotlight::CustomSearchField
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- Spotlight::CustomSearchField
- Defined in:
- app/models/spotlight/custom_search_field.rb
Overview
Exhibit-specific custom search fields
Instance Method Summary collapse
Instance Method Details
#label ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'app/models/spotlight/custom_search_field.rb', line 19 def label conf = if slug && blacklight_configuration && blacklight_configuration.search_fields.key?(slug) blacklight_configuration.search_fields[slug].reverse_merge(configuration) else configuration end conf['label'] end |
#label=(label) ⇒ Object
13 14 15 16 17 |
# File 'app/models/spotlight/custom_search_field.rb', line 13 def label=(label) configuration['label'] = label update_blacklight_configuration_label label end |