Permalink
Browse files

Remove unecessary variable call, `#sort!` always returns an array

  • Loading branch information...
1 parent a92814b commit 6d10688bbe883b2f0c30d63d3a8ce348d814d986 @agis agis committed Apr 7, 2013
Showing with 0 additions and 1 deletion.
  1. +0 −1 actionpack/lib/action_controller/metal/helpers.rb
@@ -94,7 +94,6 @@ def all_helpers_from_path(path)
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

0 comments on commit 6d10688

Please sign in to comment.