Module: Blacklight::SuggestHelperBehavior

Included in:
SuggestHelper
Defined in:
app/helpers/blacklight/suggest_helper_behavior.rb

Instance Method Summary collapse

Instance Method Details

#autocomplete_enabled?Boolean

Returns should autocomplete be enabled in the UI.

Returns:

  • (Boolean)

    should autocomplete be enabled in the UI



6
7
8
9
# File 'app/helpers/blacklight/suggest_helper_behavior.rb', line 6

def autocomplete_enabled?
  blacklight_config.autocomplete_enabled.present? &&
    blacklight_config.autocomplete_path.present?
end