Sha256: b693340adf1f81212ca89c10010bddf6cf4bc3cc61da28caa44ca049e93d7575

Contents?: true

Size: 423 Bytes

Versions: 55

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true
module Blacklight
  module SuggestHelperBehavior
    ##
    # @deprecated
    # @return [Boolean] should autocomplete be enabled in the UI
    def autocomplete_enabled?
      blacklight_config.autocomplete_enabled.present? &&
        blacklight_config.autocomplete_path.present?
    end
    deprecation_deprecate autocomplete_enabled?: "use SearchBarPresenter#autocomplete_enabled?"
  end
end

Version data entries

55 entries across 55 versions & 2 rubygems

Version Path
blacklight-7.18.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.17.2 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.17.1 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.17.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.16.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.15.2 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.15.1 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.15.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.14.1 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.14.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.13.2 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.13.1 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.13.0 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.12.1 app/helpers/blacklight/suggest_helper_behavior.rb
blacklight-7.12.0 app/helpers/blacklight/suggest_helper_behavior.rb