From 4800a613c0a9c1eb66c4defa92fce61c3e45f8f6 Mon Sep 17 00:00:00 2001 From: bogdanvlviv Date: Wed, 22 Aug 2018 23:46:00 +0300 Subject: Remove extra execution of `uniq!` on action_methods Execution of `to_set` below should remove duplicated elements. Follow up #33693 --- actionpack/lib/abstract_controller/base.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/lib/abstract_controller/base.rb b/actionpack/lib/abstract_controller/base.rb index 9783c19835..6e6786d0be 100644 --- a/actionpack/lib/abstract_controller/base.rb +++ b/actionpack/lib/abstract_controller/base.rb @@ -80,7 +80,6 @@ module AbstractController # Be sure to include shadowed public instance methods of this class public_instance_methods(false)) - methods.uniq! methods.map!(&:to_s) methods.to_set -- cgit v1.2.3