Permalink
Browse files

Merge pull request #10131 from Agis-/metal_helper

Remove unecessary variable call since `sort!` always returns the sorted array
  • Loading branch information...
2 parents a92814b + 6d10688 commit d69510000b51c8233f48f9e40608d5eb62cbfc5d @carlosantoniodasilva carlosantoniodasilva committed Apr 8, 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 d695100

Please sign in to comment.