diff options
author | Alberto Almagro <albertoalmagro@gmail.com> | 2018-10-06 18:08:45 +0200 |
---|---|---|
committer | Alberto Almagro <albertoalmagro@gmail.com> | 2018-10-10 10:22:07 +0200 |
commit | 9b9640112e197e94e13940c0c0f990cc80ca5498 (patch) | |
tree | d8b0bc06af5ce347742d8c7beb2cef8f820c572f /.yardopts | |
parent | a52c6989a0aacc50b35891265a0b5631e1ec2370 (diff) | |
download | rails-9b9640112e197e94e13940c0c0f990cc80ca5498.tar.gz rails-9b9640112e197e94e13940c0c0f990cc80ca5498.tar.bz2 rails-9b9640112e197e94e13940c0c0f990cc80ca5498.zip |
Raise on invalid definition values
When defining a Hash enum it can be easy to use [] instead of {}. This
commit checks that only valid definition values are provided, those can
be a Hash, an array of Symbols or an array of Strings. Otherwise it
raises an ArgumentError.
Fixes #33961
Diffstat (limited to '.yardopts')
0 files changed, 0 insertions, 0 deletions