diff options
author | Arun Agrawal <arunagw@gmail.com> | 2012-04-26 09:49:10 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2012-04-26 09:49:10 +0530 |
commit | 68aadbc23a2dcb20fc4b0acd0838c7466c61930c (patch) | |
tree | 71837abc0fd53b919c0f4b2e252d75756f59ece1 /actionpack/lib/action_dispatch | |
parent | 363a06f351e2d52d3717ea3334c174665ac72103 (diff) | |
download | rails-68aadbc23a2dcb20fc4b0acd0838c7466c61930c.tar.gz rails-68aadbc23a2dcb20fc4b0acd0838c7466c61930c.tar.bz2 rails-68aadbc23a2dcb20fc4b0acd0838c7466c61930c.zip |
Shadowing variable warning removed
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/mapper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |