Skip to content

Validate arguments for method_option and class_option#856

Merged
rafaelfranca merged 1 commit into
rails:mainfrom
p8:validate-option-arguments
Aug 21, 2023
Merged

Validate arguments for method_option and class_option#856
rafaelfranca merged 1 commit into
rails:mainfrom
p8:validate-option-arguments

Conversation

@p8

@p8 p8 commented Aug 9, 2023

Copy link
Copy Markdown
Member

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