Module: Spotlight::Config
- Extended by:
- ActiveSupport::Concern
- Included in:
- Base, Controller
- Defined in:
- app/controllers/concerns/spotlight/config.rb
Overview
Spotlight configuration methods
Instance Method Summary collapse
Instance Method Details
#exhibit_specific_blacklight_config ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/concerns/spotlight/config.rb', line 9 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 |