Sha256: 8dde077bbdacaafab83db06e095c3f280caf86e90264a6a553f93dd6737c8536

Contents?: true

Size: 488 Bytes

Versions: 70

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true
module ControllerLevelHelpers
  module ControllerViewHelpers
    include Blacklight::Facet

    def search_state
      @search_state ||= Blacklight::SearchState.new(params, blacklight_config, controller)
    end

    def blacklight_configuration_context
      @blacklight_configuration_context ||= Blacklight::Configuration::Context.new(controller)
    end
  end

  def initialize_controller_helpers(helper)
    helper.extend ControllerViewHelpers
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
blacklight-6.25.0 spec/support/controller_level_helpers.rb
blacklight-7.22.2 spec/support/controller_level_helpers.rb
blacklight-7.22.1 spec/support/controller_level_helpers.rb
blacklight-7.22.0 spec/support/controller_level_helpers.rb
blacklight-7.21.2 spec/support/controller_level_helpers.rb
blacklight-7.21.1 spec/support/controller_level_helpers.rb
blacklight-7.21.0 spec/support/controller_level_helpers.rb
blacklight-7.20.1 spec/support/controller_level_helpers.rb
blacklight-7.20.0 spec/support/controller_level_helpers.rb
blacklight-7.19.2 spec/support/controller_level_helpers.rb
blacklight-7.19.1 spec/support/controller_level_helpers.rb
blacklight-7.19.0 spec/support/controller_level_helpers.rb
blacklight-7.18.1 spec/support/controller_level_helpers.rb
blacklight-7.18.0 spec/support/controller_level_helpers.rb
blacklight-7.17.2 spec/support/controller_level_helpers.rb
blacklight-7.17.1 spec/support/controller_level_helpers.rb
blacklight-7.17.0 spec/support/controller_level_helpers.rb
blacklight-7.16.0 spec/support/controller_level_helpers.rb
blacklight-7.15.2 spec/support/controller_level_helpers.rb
blacklight-7.15.1 spec/support/controller_level_helpers.rb