From 618408302b1c6539ad1a80878e147b3eaae69c8a Mon Sep 17 00:00:00 2001 From: Thiago Pradi Date: Mon, 30 Aug 2010 01:26:12 -0300 Subject: [PATCH] performance improvement on all_application_helpers --- actionpack/lib/action_controller/metal/helpers.rb | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/actionpack/lib/action_controller/metal/helpers.rb b/actionpack/lib/action_controller/metal/helpers.rb index 4b6897c..e2f890c 100644 --- a/actionpack/lib/action_controller/metal/helpers.rb +++ b/actionpack/lib/action_controller/metal/helpers.rb @@ -106,9 +106,7 @@ module ActionController extract = /^#{Regexp.quote(path.to_s)}\/?(.*)_helper.rb$/ helpers += Dir["#{path}/**/*_helper.rb"].map { |file| file.sub(extract, '\1') } end - helpers.sort! - helpers.uniq! - helpers + helpers.sort.uniq end end end -- 1.6.6.1