Sha256: 1329c24a69b0da271eb58977a7bd218e12edf3407cd8c7a1b3264800991aa26c

Contents?: true

Size: 419 Bytes

Versions: 21

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  # Returned if no config is defined for a display field in the Blacklight::Configuration
  class Configuration::NullDisplayField < Blacklight::Configuration::DisplayField
    def initialize(field_or_hash = nil)
      case field_or_hash
      when String, Symbol
        super(field: field_or_hash)
      else
        super
      end

      normalize!
    end
  end
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
blacklight-8.6.1 lib/blacklight/configuration/null_display_field.rb
blacklight-8.6.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.5.1 lib/blacklight/configuration/null_display_field.rb
blacklight-8.5.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.4.0 lib/blacklight/configuration/null_display_field.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/lib/blacklight/configuration/null_display_field.rb
blacklight-8.3.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.2.2 lib/blacklight/configuration/null_display_field.rb
blacklight-8.2.1 lib/blacklight/configuration/null_display_field.rb
blacklight-8.2.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.1.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.1 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta8 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta7 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta6 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta5 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta4 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta3 lib/blacklight/configuration/null_display_field.rb
blacklight-8.0.0.beta2 lib/blacklight/configuration/null_display_field.rb