Sha256: 0f2a3595a7781f5147a8eed6e321e4f2883592e9b50a473a87dbba5a8612aa58

Contents?: true

Size: 373 Bytes

Versions: 16

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true
module Geoblacklight
  module CatalogHelperOverride
    ##
    # Removes spatial query from params
    # @param [Symbol] symbol of field to be removed
    # @param [Hash] request parameters
    def remove_spatial_filter_group(field, source_params = params)
      p = source_params.dup.to_h
      p.delete(field.to_s)
      p
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.8.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.7.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.6.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.5.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-4.0.0.pre.alpha.3 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-4.0.0.pre.alpha.2 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-4.0.0.pre.alpha.1 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-4.0.0.pre.alpha lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.4.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.3.1 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.3.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.2.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.1.0 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.0.1 lib/geoblacklight/catalog_helper_override.rb
geoblacklight-3.0.0 lib/geoblacklight/catalog_helper_override.rb