From 6d10688bbe883b2f0c30d63d3a8ce348d814d986 Mon Sep 17 00:00:00 2001 From: Agis Anastasopoulos Date: Sun, 7 Apr 2013 21:55:35 +0300 Subject: Remove unecessary variable call, `#sort!` always returns an array --- actionpack/lib/action_controller/metal/helpers.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack/lib/action_controller') diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index 35facd13c8..243fd40a7e 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -94,7 +94,6 @@ module ActionController extract = /^#{Regexp.quote(_path.to_s)}\/?(.*)_helper.rb$/ names = Dir["#{_path}/**/*_helper.rb"].map { |file| file.sub(extract, '\1') } names.sort! - names end helpers.uniq! helpers -- cgit v1.2.3