mirror of https://github.com/rails/rails
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 |