Skip to content
Browse files

Shadowing variable warning removed

  • Loading branch information...
1 parent 363a06f commit 68aadbc23a2dcb20fc4b0acd0838c7466c61930c @arunagw arunagw committed Apr 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_dispatch/routing/mapper.rb
View
6 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -1306,14 +1306,14 @@ def shallow?
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

0 comments on commit 68aadbc

Please sign in to comment.
Something went wrong with that request. Please try again.