Sha256: f74a3495ce44fa505128669a0d8cd712cc571506a94ef329918854c7d7f71ce2
Contents?: true
Size: 593 Bytes
Versions: 24
Compression:
Stored size: 593 Bytes
Contents
module Spotlight ## # Spotlight configuration methods module Config extend ActiveSupport::Concern def exhibit_specific_blacklight_config @exhibit_specific_blacklight_config ||= if current_exhibit current_exhibit.blacklight_config elsif params[:exhibit_id] fail "Exhibit id exists (#{params[:exhibit_id]}), but @exhibit hasn't been loaded yet" else # Not in an exhibit context. (So why are we calling a method called exhibit_specific_blacklight_config?) fail 'Exhibit not found' end end end end
Version data entries
24 entries across 24 versions & 1 rubygems