diff --git a/app/helpers/blacklight/blacklight_helper_behavior.rb b/app/helpers/blacklight/blacklight_helper_behavior.rb index 9aa883a0..7797c820 100644 --- a/app/helpers/blacklight/blacklight_helper_behavior.rb +++ b/app/helpers/blacklight/blacklight_helper_behavior.rb @@ -331,7 +331,9 @@ def document_index_view_type(query_params = params) # # @param [String] format suffix # @yield - def with_format(format, *) + # rubocop:disable Lint/UnusedMethodArgument + def with_format(format, *, &block) + # rubocop:enable Lint/UnusedMethodArgument old_formats = formats self.formats = [format] yield