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) ``` |
||
---|---|---|
.. | ||
account.rb | ||
blog_post.rb | ||
contact.rb | ||
custom_reader.rb | ||
helicopter.rb | ||
person.rb | ||
person_with_validator.rb | ||
reply.rb | ||
sheep.rb | ||
topic.rb | ||
track_back.rb | ||
user.rb | ||
visitor.rb |