Sha256: ddf78080d343f31a742d7ed38870f5cacf3cad58fa506a9f4d8daf26bcc7f4b0

Contents?: true

Size: 371 Bytes

Versions: 5

Compression:

Stored size: 371 Bytes

Contents

module Geoblacklight
  module ViewHelperOverride
    
    def has_spatial_parameters?
      params[:bbox]
    end
    
    # Overrides BL method to enable results for spatial only params
    def has_search_parameters?
      super || has_spatial_parameters?
    end
    
    def query_has_contraints(params = params)
      super || has_search_parameters?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
geoblacklight-0.0.7 lib/geoblacklight/view_helper_override.rb
geoblacklight-0.0.6 lib/geoblacklight/view_helper_override.rb
geoblacklight-0.0.5 lib/geoblacklight/view_helper_override.rb
geoblacklight-0.0.4 lib/geoblacklight/view_helper_override.rb
geoblacklight-0.0.3 lib/geoblacklight/view_helper_override.rb