Module: Geoblacklight::GeoblacklightHelperBehavior

Includes:
Blacklight::BlacklightHelperBehavior
Included in:
BlacklightHelper
Defined in:
app/helpers/geoblacklight/geoblacklight_helper_behavior.rb

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)


14
15
16
# File 'app/helpers/geoblacklight/geoblacklight_helper_behavior.rb', line 14

def geoblacklight_present(presenting_method, document = @document)
  document_presenter(document).try(presenting_method.to_sym) || ""
end