Skip to content

Commit

Permalink
Suppress warning from actionview controller helper.
Browse files Browse the repository at this point in the history
Explicitly pass a destructed array to the delegate method.

Signed-off-by: Yuki Nishijima <yk.nishijima@gmail.com>
  • Loading branch information
xtina-starr authored and yuki24 committed Jul 24, 2017
1 parent 9c35bf2 commit 6ac1cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionview/lib/action_view/helpers/controller_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module ControllerHelper #:nodoc:
: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
Expand Down

0 comments on commit 6ac1cf3

Please sign in to comment.