Class: Blacklight::Configuration::FacetField
- Inherits:
-
Field
- Object
- OpenStruct
- OpenStructWithHashAccess
- Field
- Blacklight::Configuration::FacetField
- Defined in:
- lib/blacklight/configuration/facet_field.rb
Instance Method Summary collapse
Methods inherited from Field
Methods inherited from OpenStructWithHashAccess
#deep_dup, #merge, #merge!, #select, #sort_by, #sort_by!, #to_h
Instance Method Details
#normalize!(blacklight_config = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/blacklight/configuration/facet_field.rb', line 4 def normalize! blacklight_config = nil self.query.stringify_keys! if self.query self.collapse = true if self.collapse.nil? self.show = true if self.show.nil? self.if = self.show if self.if.nil? self.index_range = 'A'..'Z' if self.index_range == true super if self.single and self.tag.blank? and self.ex.blank? self.tag = "#{self.key}_single" self.ex = "#{self.key}_single" end self end |