Sha256: b981a3b86a056d33fc32b4063452c16de31be080b5222989339610351df2f1c8
Contents?: true
Size: 447 Bytes
Versions: 19
Compression:
Stored size: 447 Bytes
Contents
module Blacklight class Configuration::SortField < Blacklight::Configuration::SolrField def normalize! blacklight_config = nil self.sort ||= self.field self.field ||= self.key self.field ||= self.label.try(:parameterize) self.field ||= self.sort self.key ||= self.field super end def validate! raise ArgumentError.new("Must supply a solr sort string") if self.sort.nil? end end end
Version data entries
19 entries across 19 versions & 1 rubygems