app/models/concerns/spotlight/exhibit_documents.rb in blacklight-spotlight-3.0.0.rc4 vs app/models/concerns/spotlight/exhibit_documents.rb in blacklight-spotlight-3.0.0.rc5
- old
+ new
@@ -21,14 +21,14 @@
start += response.documents.length
response = repository.search(search_params.start(start).to_h)
end
end
- private
-
def exhibit_search_builder
blacklight_config.search_builder_class.new(exhibit_search_builder_context).except(:apply_permissive_visibility_filter)
end
+
+ private
def exhibit_search_builder_context
OpenStruct.new(blacklight_config: blacklight_config.tap { |x| x.current_exhibit = self })
end