Closed
Description
Steps to reproduce
Having request
as a argument to a component fails, eg
class ExampleComponent < ViewComponent::Base
def initialize(request:)
@request = request
end
end
Running render(ExampleComponent.new(request: "My Title"))
will result in:
private method `format' called for an instance of String
A repo with the error is at https://github.com/erikaxel/view_component-request-bug-replica
System configuration
Using request
worked before version 3.15, my assumption is that #2079 is the culprit.
Metadata
Metadata
Assignees
Labels
No labels