Module: Geoblacklight::GeoblacklightHelperBehavior

Included in:
BlacklightHelper
Defined in:
lib/geoblacklight/geoblacklight_helper_behavior.rb

Overview

Adds helper behavior logic for GeoBlacklight, to used alongside BlacklightHelperBehavior

Instance Method Summary collapse

Instance Method Details

#geoblacklight_present(presenting_method, document = @document) ⇒ String

Calls the presenter on the requested method

Parameters:

  • presenting_method (Symbol, String)

Returns:

  • (String)


10
11
12
# File 'lib/geoblacklight/geoblacklight_helper_behavior.rb', line 10

def geoblacklight_present(presenting_method, document = @document)
  presenter(document).try(presenting_method.to_sym) || ''
end