From 6ac1cf394bd71e464cfd2e8b2b6736cfa6a222fc Mon Sep 17 00:00:00 2001 From: Christina Thompson Date: Mon, 24 Jul 2017 16:24:12 -0400 Subject: Suppress warning from actionview controller helper. Explicitly pass a destructed array to the delegate method. Signed-off-by: Yuki Nishijima --- actionview/lib/action_view/helpers/controller_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3