Sha256: 215f321f51d19e1a89005c2dd494fb6aec03244f5404a9aea2cfa88a4a08586c

Contents?: true

Size: 350 Bytes

Versions: 39

Compression:

Stored size: 350 Bytes

Contents

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

39 entries across 39 versions & 1 rubygems

Version Path
blacklight-6.25.0 lib/blacklight/configuration/null_field.rb
blacklight-6.24.0 lib/blacklight/configuration/null_field.rb
blacklight-6.23.0 lib/blacklight/configuration/null_field.rb
blacklight-6.22.0 lib/blacklight/configuration/null_field.rb
blacklight-6.21.0 lib/blacklight/configuration/null_field.rb
blacklight-6.20.0 lib/blacklight/configuration/null_field.rb
blacklight-6.19.2 lib/blacklight/configuration/null_field.rb
blacklight-6.19.1 lib/blacklight/configuration/null_field.rb
blacklight-6.19.0 lib/blacklight/configuration/null_field.rb
blacklight-6.18.0 lib/blacklight/configuration/null_field.rb
blacklight-6.17.0 lib/blacklight/configuration/null_field.rb
blacklight-6.16.0 lib/blacklight/configuration/null_field.rb
blacklight-6.15.0 lib/blacklight/configuration/null_field.rb
blacklight-7.0.0.rc1 lib/blacklight/configuration/null_field.rb
blacklight-6.14.1 lib/blacklight/configuration/null_field.rb
blacklight-6.14.0 lib/blacklight/configuration/null_field.rb
blacklight-6.13.0 lib/blacklight/configuration/null_field.rb
blacklight-6.12.0 lib/blacklight/configuration/null_field.rb
blacklight-6.11.2 lib/blacklight/configuration/null_field.rb
blacklight-6.11.1 lib/blacklight/configuration/null_field.rb