aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/controller_helper.rb
diff options
context:
space:
mode:
authorChristina Thompson <c.thompsonms@gmail.com>2017-07-24 16:24:12 -0400
committerYuki Nishijima <yk.nishijima@gmail.com>2017-07-24 16:24:12 -0400
commit6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc (patch)
tree9371c3a19e8d6b9172eb71c501cb9c2be83e4dae /actionview/lib/action_view/helpers/controller_helper.rb
parent9c35bf2a6a27431c6aa283db781c19f61c5155be (diff)
downloadrails-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/action_view/helpers/controller_helper.rb')
-rw-r--r--actionview/lib/action_view/helpers/controller_helper.rb2
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