Sha256: 5a3459e465ae4d3688e9acff01bd3055c593db285d32de7f40a4fb901e9624e2

Contents?: true

Size: 522 Bytes

Versions: 14

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true
##
# Adds helper behavior logic for GeoBlacklight, to used alongside
# BlacklightHelperBehavior
module Geoblacklight
  module GeoblacklightHelperBehavior
    include Blacklight::BlacklightHelperBehavior

    ##
    # Calls the presenter on the requested method
    # @param [Symbol, String] presenting_method
    # @return [String]
    def geoblacklight_present(presenting_method, document = @document)
      document_presenter(document).try(presenting_method.to_sym) || ''
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-3.8.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.rc3 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-3.7.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.rc2 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.rc1 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-3.6.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-3.5.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.alpha.3 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.alpha.2 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.alpha.1 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-4.0.0.pre.alpha app/helpers/geoblacklight/geoblacklight_helper_behavior.rb
geoblacklight-3.4.0 app/helpers/geoblacklight/geoblacklight_helper_behavior.rb