Permalink
Browse files

Merge pull request #163 from oreoshake/quick_fix_for_init_checker

Quick fix for flapping behavior on 1.8
  • Loading branch information...
2 parents 54a1b0a + 37fe266 commit 4824c03b26795a32bea0603e313abcf771336056 @presidentbeef committed Oct 9, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/brakeman/tracker.rb
View
4 lib/brakeman/tracker.rb
@@ -84,7 +84,7 @@ def each_method
end
end
- #Iterates over each template, yielding the name and the template.
+ #Iterates over each template, yielding the name and the template.
#Prioritizes templates which have been rendered.
def each_template
if @processed.nil?
@@ -130,7 +130,7 @@ def find_call options
def check_initializers target, method
finder = Brakeman::FindCall.new target, method, self
- initializers.each do |name, initializer|
+ initializers.sort.each do |name, initializer|
finder.process_source initializer
end

0 comments on commit 4824c03

Please sign in to comment.