Class: Brakeman::ConfigProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/brakeman/processors/config_processor.rb

Class Method Summary collapse

Class Method Details

.new(tracker) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/brakeman/processors/config_processor.rb', line 8

def self.new tracker
  if tracker.options[:rails4]
    Brakeman::Rails4ConfigProcessor.new tracker
  elsif tracker.options[:rails3]
    Brakeman::Rails3ConfigProcessor.new tracker
  else
    Brakeman::Rails2ConfigProcessor.new tracker
  end
end