Skip to content

Commit

Permalink
πŸ› Address ActionView::Template::Error
Browse files Browse the repository at this point in the history
I'm seeing the following in Sentry:

```
ArgumentError
wrong number of arguments (given 1, expected 2)
```

With this commit, we factor towards the correct arity while also
allowing additional parameters.
  • Loading branch information
jeremyf committed Apr 1, 2024
1 parent bf318cf commit f775ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/blacklight/blacklight_helper_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def document_index_view_type(query_params = params)
#
# @param [String] format suffix
# @yield
def with_format(format, _block)
def with_format(format, *, &block)
old_formats = formats
self.formats = [format]
yield
Expand Down

0 comments on commit f775ad6

Please sign in to comment.