diff options
author | Christina Thompson <c.thompsonms@gmail.com> | 2017-07-24 16:24:12 -0400 |
---|---|---|
committer | Yuki Nishijima <yk.nishijima@gmail.com> | 2017-07-24 16:24:12 -0400 |
commit | 6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc (patch) | |
tree | 9371c3a19e8d6b9172eb71c501cb9c2be83e4dae /actionview/lib | |
parent | 9c35bf2a6a27431c6aa283db781c19f61c5155be (diff) | |
download | rails-6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc.tar.gz rails-6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc.tar.bz2 rails-6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc.zip |
Suppress warning from actionview controller helper.
Explicitly pass a destructed array to the delegate method.
Signed-off-by: Yuki Nishijima <yk.nishijima@gmail.com>
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/helpers/controller_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/controller_helper.rb b/actionview/lib/action_view/helpers/controller_helper.rb index 8e7d896347..00d8b9665d 100644 --- a/actionview/lib/action_view/helpers/controller_helper.rb +++ b/actionview/lib/action_view/helpers/controller_helper.rb @@ -13,7 +13,7 @@ module ActionView :session, :cookies, :response, :headers, :flash, :action_name, :controller_name, :controller_path] - delegate *CONTROLLER_DELEGATES, to: :controller + delegate(*CONTROLLER_DELEGATES, to: :controller) def assign_controller(controller) if @_controller = controller |