Sha256: df455ef79e0a4d74a1b569c0634e54ad35d2c4a8bfa1e387e2699ba17c402009

Contents?: true

Size: 447 Bytes

Versions: 59

Compression:

Stored size: 447 Bytes

Contents

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

59 entries across 59 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.4.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.3.3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.3.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.3.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.3.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.2.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.2.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.1.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc6 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc5 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc4 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc3 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc2 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-2.0.0.rc1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-1.5.1 app/controllers/concerns/spotlight/config.rb
blacklight-spotlight-1.4.1 app/controllers/concerns/spotlight/config.rb