Sha256: b0cbd843b1f14cf6c027bdbb6400e7eaec4ab8884f2b0d7a2adfee672ea4da64

Contents?: true

Size: 381 Bytes

Versions: 95

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

95 entries across 94 versions & 2 rubygems

Version Path
blacklight-8.6.1 lib/blacklight/configuration/null_field.rb
blacklight-7.40.0 lib/blacklight/configuration/null_field.rb
blacklight-8.6.0 lib/blacklight/configuration/null_field.rb
blacklight-8.5.1 lib/blacklight/configuration/null_field.rb
blacklight-8.5.0 lib/blacklight/configuration/null_field.rb
blacklight-7.39.0 lib/blacklight/configuration/null_field.rb
blacklight-8.4.0 lib/blacklight/configuration/null_field.rb
blacklight-7.38.0 lib/blacklight/configuration/null_field.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-8.3.0/lib/blacklight/configuration/null_field.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/blacklight-7.37.0/lib/blacklight/configuration/null_field.rb
blacklight-8.3.0 lib/blacklight/configuration/null_field.rb
blacklight-8.2.2 lib/blacklight/configuration/null_field.rb
blacklight-8.2.1 lib/blacklight/configuration/null_field.rb
blacklight-8.2.0 lib/blacklight/configuration/null_field.rb
blacklight-7.37.0 lib/blacklight/configuration/null_field.rb
blacklight-7.36.2 lib/blacklight/configuration/null_field.rb
blacklight-7.36.1 lib/blacklight/configuration/null_field.rb
blacklight-7.36.0 lib/blacklight/configuration/null_field.rb
blacklight-7.35.0 lib/blacklight/configuration/null_field.rb
blacklight-8.1.0 lib/blacklight/configuration/null_field.rb