1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Adam Hess 85f95b2f58 prevent helper_method from calling to_hash
`helper_method` was taking `**kwargs` on all definitions by default.
ruby will assume that this means you want keyword args and call
`to_hash` on what you pass if the object responds to `to_hash`. Instead
we should only take keyword args if the helper method defined intends
to pass keyword args.

This also fixes a warning when you pass a hash to your helper method,

```
warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
```

Also, this would be a good candidate for using `...`, but since `send`
requires the method as the first argument, we can't use it here.
2020-01-14 15:33:33 -08:00
..
abstract Module#{define_method,alias_method,undef_method,remove_method} become public since Ruby 2.5 2018-12-21 01:39:18 +09:00
assertions
controller prevent helper_method from calling to_hash 2020-01-14 15:33:33 -08:00
dispatch rack 2.1.0 changed expires date format from rfc2822 to httpdate 2020-01-11 15:09:50 +09:00
fixtures Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
journey Memoize regex when checking missing route keys 2020-01-08 08:36:29 +01:00
lib Render objects that respond_to render_in in controllers 2019-12-09 16:43:18 -07:00
routing
abstract_unit.rb Remove ENV['TRAVIS'] 2020-01-02 09:23:06 +09:00