Sha256: 95502d7739d4d6dd90dc1301656c857a664f5423267af268a71244e1bca2ff2a

Contents?: true

Size: 408 Bytes

Versions: 5

Compression:

Stored size: 408 Bytes

Contents

module Blacklight
  class Configuration::FacetField < Blacklight::Configuration::SolrField
    def normalize! blacklight_config = nil
      self.query.stringify_keys! if self.query

      if self.single and self.tag.blank? and self.ex.blank?
        self.tag = "#{self.field}_single"
        self.ex = "#{self.field}_single"
      end

      self.show = true if self.show.nil?
      super
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-4.9.0 lib/blacklight/configuration/facet_field.rb
blacklight-4.8.0 lib/blacklight/configuration/facet_field.rb
blacklight-4.7.0 lib/blacklight/configuration/facet_field.rb
blacklight-4.7.0.pre1 lib/blacklight/configuration/facet_field.rb
blacklight-4.6.3 lib/blacklight/configuration/facet_field.rb