Sha256: 0a8084e4266a9010c3c4cf52d790547581a65d78f8ea579cf2cbc51fbf6538c9

Contents?: true

Size: 476 Bytes

Versions: 20

Compression:

Stored size: 476 Bytes

Contents

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

    def search_state
      @search_state ||= Blacklight::SearchState.new(params, blacklight_config)
    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

20 entries across 20 versions & 1 rubygems

Version Path
blacklight-6.8.0 spec/support/controller_level_helpers.rb
blacklight-6.7.3 spec/support/controller_level_helpers.rb
blacklight-6.7.2 spec/support/controller_level_helpers.rb
blacklight-6.7.1 spec/support/controller_level_helpers.rb
blacklight-6.7.0 spec/support/controller_level_helpers.rb
blacklight-6.6.2 spec/support/controller_level_helpers.rb
blacklight-6.6.1 spec/support/controller_level_helpers.rb
blacklight-6.6.0 spec/support/controller_level_helpers.rb
blacklight-6.5.0 spec/support/controller_level_helpers.rb
blacklight-6.4.2 spec/support/controller_level_helpers.rb
blacklight-6.4.1 spec/support/controller_level_helpers.rb
blacklight-6.4.0 spec/support/controller_level_helpers.rb
blacklight-6.3.3 spec/support/controller_level_helpers.rb
blacklight-6.3.1 spec/support/controller_level_helpers.rb
blacklight-6.3.0 spec/support/controller_level_helpers.rb
blacklight-6.2.0 spec/support/controller_level_helpers.rb
blacklight-6.1.0 spec/support/controller_level_helpers.rb
blacklight-6.0.2 spec/support/controller_level_helpers.rb
blacklight-6.0.1 spec/support/controller_level_helpers.rb
blacklight-6.0.0 spec/support/controller_level_helpers.rb