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