diff options
author | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2013-04-07 21:55:35 +0300 |
---|---|---|
committer | Agis Anastasopoulos <corestudiosinc@gmail.com> | 2013-04-07 21:55:35 +0300 |
commit | 6d10688bbe883b2f0c30d63d3a8ce348d814d986 (patch) | |
tree | 620a77cc553091c5ac1a18c0756d2c245e5683b8 /actionpack/lib/action_controller | |
parent | a92814b001d93f8ef533e692011bbc8824841bf7 (diff) | |
download | rails-6d10688bbe883b2f0c30d63d3a8ce348d814d986.tar.gz rails-6d10688bbe883b2f0c30d63d3a8ce348d814d986.tar.bz2 rails-6d10688bbe883b2f0c30d63d3a8ce348d814d986.zip |
Remove unecessary variable call, `#sort!` always returns an array
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r-- | actionpack/lib/action_controller/metal/helpers.rb | 1 |
1 files changed, 0 insertions, 1 deletions
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 |