From 68aadbc23a2dcb20fc4b0acd0838c7466c61930c Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Thu, 26 Apr 2012 09:49:10 +0530 Subject: Shadowing variable warning removed --- actionpack/lib/action_dispatch/routing/mapper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb index 716e2d2271..1a1a054985 100644 --- a/actionpack/lib/action_dispatch/routing/mapper.rb +++ b/actionpack/lib/action_dispatch/routing/mapper.rb @@ -1306,14 +1306,14 @@ module ActionDispatch end def draw(name) - path = @draw_paths.find do |path| - path.join("#{name}.rb").file? + path = @draw_paths.find do |_path| + _path.join("#{name}.rb").file? end unless path msg = "Your router tried to #draw the external file #{name}.rb,\n" \ "but the file was not found in:\n\n" - msg += @draw_paths.map { |path| " * #{path}" }.join("\n") + msg += @draw_paths.map { |_path| " * #{_path}" }.join("\n") raise msg end -- cgit v1.2.3