app/helpers/spotlight/application_helper.rb in blacklight-spotlight-2.5.1 vs app/helpers/spotlight/application_helper.rb in blacklight-spotlight-2.5.2
- old
+ new
@@ -77,12 +77,13 @@
end
##
# Override Blacklight's #render_document_class to inject a private class
def render_document_class(document = @document)
- types = super || ''
- types << " #{document_class_prefix}private" if document.private?(current_exhibit)
- types
+ [
+ super,
+ ("#{document_class_prefix}private" if document.private?(current_exhibit))
+ ].join(' ')
end
# Return a copy of the blacklight configuration
# that only includes views conifgured by our block
def blacklight_view_config_for_search_block(block)