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-3.0.3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc6 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc5 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc4 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.rc1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.10 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.9 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.8 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.7 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.6 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.5 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.4 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-3.0.0.alpha.1 app/controllers/concerns/spotlight/config.rb