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