Sha256: 024276414689f070b5082d96b9c7e1d1b4be663edae539aba638e35f02643a53

Contents?: true

Size: 478 Bytes

Versions: 76

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ##
  # Spotlight configuration methods
  module Config
    extend ActiveSupport::Concern

    def exhibit_specific_blacklight_config
      raise "Exhibit id exists (#{params[:exhibit_id]}), but @exhibit hasn't been loaded yet" if params[:exhibit_id] && current_exhibit.nil?
      raise 'Exhibit not found' unless current_exhibit

      @exhibit_specific_blacklight_config ||= current_exhibit.blacklight_config
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.5 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.4 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.3.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.2.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.1.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.1.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.1.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.0.3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.0.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.0.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-4.0.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.6.0.beta10 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.6.0.beta9 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.6.0.beta8 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.5.0.4 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.6.0.beta7 app/controllers/concerns/spotlight/config.rb