diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-22 16:53:02 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-27 11:19:22 -0300 |
commit | dafb4bd33ba26bf8ca3455db270fee843c8bd2fd (patch) | |
tree | 677d2dd76f29b46748ab92d3d5f4f406311b20b3 /actionpack/lib/action_view/testing/resolvers.rb | |
parent | 6b135f7e465a6cd1c8162432f6e0caa820316c44 (diff) | |
download | rails-dafb4bd33ba26bf8ca3455db270fee843c8bd2fd.tar.gz rails-dafb4bd33ba26bf8ca3455db270fee843c8bd2fd.tar.bz2 rails-dafb4bd33ba26bf8ca3455db270fee843c8bd2fd.zip |
Don't shadow outer local variables.
Diffstat (limited to 'actionpack/lib/action_view/testing/resolvers.rb')
-rw-r--r-- | actionpack/lib/action_view/testing/resolvers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/testing/resolvers.rb b/actionpack/lib/action_view/testing/resolvers.rb index 97de2471cf..b2b62528a9 100644 --- a/actionpack/lib/action_view/testing/resolvers.rb +++ b/actionpack/lib/action_view/testing/resolvers.rb @@ -22,10 +22,10 @@ module ActionView #:nodoc: end templates = [] - @hash.select { |k,v| k =~ /^#{query}$/ }.each do |path, source| - handler, format = extract_handler_and_format(path, formats) - templates << Template.new(source, path, handler, - :virtual_path => path, :format => format) + @hash.select { |k,v| k =~ /^#{query}$/ }.each do |_path, source| + handler, format = extract_handler_and_format(_path, formats) + templates << Template.new(source, _path, handler, + :virtual_path => _path, :format => format) end templates.sort_by {|t| -t.identifier.match(/^#{query}$/).captures.reject(&:blank?).size } |