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

Validate arguments for method_option and class_option #856

Merged
merged 1 commit into from
Aug 21, 2023

Conversation

p8
Copy link
Member

@p8 p8 commented Aug 9, 2023

method_option and class_option require a String or Symbol as the first argument.
This can be somewhat confusing when method_options and class_options require a Hash as argument.

Fixes #808

`method_option` and `class_option` require a String or Symbol as the
first argument. This can be somewhat confusing when `method_options` and
`class_options` require a Hash as argument.
@rafaelfranca rafaelfranca merged commit ada161b into rails:main Aug 21, 2023
@p8 p8 deleted the validate-option-arguments branch August 21, 2023 20:18
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.

method_option does not correctly parsed
2 participants