mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
eece095765
This saves some array allocations from avoiding `*args`, as well as makes the Method object `arity` and `parameters` correct. e.g. before this patch, ArgumentError would be confusing: ```ruby >> model.name_was(1) ArgumentError: wrong number of arguments (given 2, expected 1) ``` |
||
---|---|---|
.. | ||
cases | ||
models | ||
validators |