Skip to content

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