1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
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_controller prevent helper_method from calling to_hash 2020-01-14 15:33:33 -08:00
action_controller Merge pull request #38211 from rails/do-not-reparse-path-info 2020-01-10 12:38:01 -08:00
action_dispatch Fix warning on arg forwarding in integration tests 2020-01-13 11:19:31 -05:00
action_pack Start Rails 6.1 development 2019-04-24 15:57:14 -04:00
abstract_controller.rb Make sure to require active_support.rb before requiring active_support/rails.rb 2019-07-12 18:30:58 +09:00
action_controller.rb Add ActionController::Base.log_at 2019-09-24 13:47:34 -04:00
action_dispatch.rb Bump license years from 2019 to 2020 [ci skip] 2020-01-01 15:10:31 +05:30
action_pack.rb Bump license years from 2019 to 2020 [ci skip] 2020-01-01 15:10:31 +05:30