Sha256: 1a4962cb0d6076f0227ccbad1d84a6ebf836b8fc6626713602ca9c19f1f8f947

Contents?: true

Size: 292 Bytes

Versions: 30

Compression:

Stored size: 292 Bytes

Contents

module Blacklight
  class Configuration::SolrField < OpenStructWithHashAccess
    def normalize! blacklight_config
      self.label ||= self.field.try(:titleize)
    end
  
    def validate!
      raise ArgumentError.new("Must supply a solr field name") if self.field.nil?
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
blacklight-4.2.2 lib/blacklight/configuration/solr_field.rb
blacklight-4.2.1 lib/blacklight/configuration/solr_field.rb
blacklight-4.2.0 lib/blacklight/configuration/solr_field.rb
blacklight-4.1.0 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.1 lib/blacklight/configuration/solr_field.rb
blacklight-3.8.2 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.0 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.0.rc2 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.0.rc1 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.0.pre7 lib/blacklight/configuration/solr_field.rb
blacklight-4.0.0.pre6 lib/blacklight/configuration/solr_field.rb
blacklight-3.8.1 lib/blacklight/configuration/solr_field.rb
blacklight-3.8.0 lib/blacklight/configuration/solr_field.rb
blacklight-3.7.2 lib/blacklight/configuration/solr_field.rb
blacklight-3.7.1 lib/blacklight/configuration/solr_field.rb
blacklight-3.7.0 lib/blacklight/configuration/solr_field.rb
blacklight-3.6.1.1 lib/blacklight/configuration/solr_field.rb
blacklight-3.6.0 lib/blacklight/configuration/solr_field.rb
blacklight-3.5.0 lib/blacklight/configuration/solr_field.rb
blacklight-3.4.2 lib/blacklight/configuration/solr_field.rb