app/models/concerns/spotlight/exhibit_documents.rb in blacklight-spotlight-2.13.0 vs app/models/concerns/spotlight/exhibit_documents.rb in blacklight-spotlight-3.0.0.alpha.1
- old
+ new
@@ -28,10 +28,10 @@
def exhibit_search_builder
blacklight_config.search_builder_class.new(exhibit_search_builder_context).except(:apply_permissive_visibility_filter)
end
def exhibit_search_builder_context
- OpenStruct.new(blacklight_config: blacklight_config, current_exhibit: self)
+ OpenStruct.new(blacklight_config: blacklight_config.tap { |x| x.current_exhibit = self })
end
def repository
@repository ||= Blacklight.repository_class.new(blacklight_config)
end