Browse files

Call Processor#process_controller_alias properly

  • Loading branch information...
1 parent d1b2ac0 commit 044e4c8bea50f1efd0c56ab861a5302ac5aba7ce @presidentbeef presidentbeef committed with Dave Worth Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/brakeman/rescanner.rb
View
4 lib/brakeman/rescanner.rb
@@ -111,7 +111,7 @@ def rescan_controller path
end
end
- @processor.process_controller_alias controller[:src]
+ @processor.process_controller_alias controller[:name], controller[:src]
end
end
end
@@ -154,7 +154,7 @@ def rescan_template path
controller = tracker.controllers[r[1]]
unless @paths.include? controller[:file]
- @processor.process_controller_alias controller[:src], r[2]
+ @processor.process_controller_alias controller[:name], controller[:src], r[2]
end
elsif r[0] == :template
template = tracker.templates[r[1]]

0 comments on commit 044e4c8

Please sign in to comment.