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-7.18.1 lib/blacklight/configuration/null_field.rb
blacklight-7.18.0 lib/blacklight/configuration/null_field.rb
blacklight-7.17.2 lib/blacklight/configuration/null_field.rb
blacklight-7.17.1 lib/blacklight/configuration/null_field.rb
blacklight-7.17.0 lib/blacklight/configuration/null_field.rb
blacklight-7.16.0 lib/blacklight/configuration/null_field.rb
blacklight-7.15.2 lib/blacklight/configuration/null_field.rb
blacklight-7.15.1 lib/blacklight/configuration/null_field.rb
blacklight-7.15.0 lib/blacklight/configuration/null_field.rb
blacklight-7.14.1 lib/blacklight/configuration/null_field.rb
blacklight-7.14.0 lib/blacklight/configuration/null_field.rb
blacklight-7.13.2 lib/blacklight/configuration/null_field.rb
blacklight-7.13.1 lib/blacklight/configuration/null_field.rb
blacklight-7.13.0 lib/blacklight/configuration/null_field.rb
blacklight-7.12.1 lib/blacklight/configuration/null_field.rb
blacklight-7.12.0 lib/blacklight/configuration/null_field.rb
blacklight-7.11.1 lib/blacklight/configuration/null_field.rb
blacklight-7.10.0 lib/blacklight/configuration/null_field.rb
blacklight-7.9.0 lib/blacklight/configuration/null_field.rb
blacklight-7.8.1 lib/blacklight/configuration/null_field.rb