rails/activemodel/test
Jean Boussier eece095765 Allow to pass the method signature when defining attribute methods
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)
```
2021-04-11 17:03:25 +02:00
..
cases Simplify ActiveModel & ActiveRecord Type::Registry 2021-04-07 09:59:55 -04:00
models Allow to pass the method signature when defining attribute methods 2021-04-11 17:03:25 +02:00
validators Revert "Merge pull request #37504 from utilum/no_implicit_conversion_of_nil" 2019-12-09 11:50:39 -03:00