Skip to content

Commit

Permalink
Move CSV to it's own initializer file
Browse files Browse the repository at this point in the history
  • Loading branch information
barttenbrinke committed Mar 22, 2013
1 parent 2903da9 commit f24d7bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/brakeman/report.rb
Expand Up @@ -18,13 +18,6 @@ class Brakeman::Report

attr_reader :tracker, :checks

# Ruby 1.8 compatible
if CSV.const_defined? :Reader
require 'fastercsv'
Object.send(:remove_const, :CSV)
CSV = FasterCSV
end

TEXT_CONFIDENCE = [ "High", "Medium", "Weak" ]
HTML_CONFIDENCE = [ "<span class='high-confidence'>High</span>",
"<span class='med-confidence'>Medium</span>",
Expand Down
7 changes: 7 additions & 0 deletions lib/brakeman/report/intializers/faster_csv.rb
@@ -0,0 +1,7 @@
# Ruby 1.8 compatible
if CSV.const_defined? :Reader
require 'fastercsv'
Object.send(:remove_const, :CSV)
CSV = FasterCSV
end

0 comments on commit f24d7bf

Please sign in to comment.