Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update with_controller_class type documentation #2094

Merged
merged 3 commits into from
Sep 16, 2024

Conversation

TastyPi
Copy link
Contributor

@TastyPi TastyPi commented Sep 16, 2024

What are you trying to accomplish?

In Yard [ActionController::Base] means "an instance of ActionController::Base, but this method actually wants a subclass. Tools such as RubyMine complain that the expected type is incorrect when that's not true.

What approach did you choose and why?

Fixed the doc to use [Class<ActionController::Base>] which is the correct type signatire for this meythod.

Anything you want to highlight for special attention from reviewers?

No

@joelhawksley
Copy link
Member

@TastyPi thanks for the PR! Might you add a CHANGELOG entry?

@TastyPi
Copy link
Contributor Author

TastyPi commented Sep 16, 2024

@joelhawksley Done

@joelhawksley joelhawksley enabled auto-merge (squash) September 16, 2024 19:47
@joelhawksley joelhawksley merged commit fe39b4d into ViewComponent:main Sep 16, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants