Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Oops, cleanup debug output

  • Loading branch information...
commit 8b3714e2384f1c1864007a6f5464df7c96036328 1 parent 5e9ef35
Justin authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 lib/brakeman/processors/lib/render_helper.rb
10 lib/brakeman/processors/lib/render_helper.rb
View
@@ -14,10 +14,8 @@ def process_render exp
begin
process_template template_name, exp[3]
rescue ArgumentError => e
- $stderr.puts e
- $stderr.puts self.class
- $stderr.puts @template[:name]
- $stderr.puts "Problem processing render: #{exp}"
+ Brakeman.debug "Problem processing render: #{exp}"
+ raise e
end
when :partial, :layout
process_partial exp[2], exp[3]
@@ -26,10 +24,6 @@ def process_render exp
exp
end
- def process_layout_in_view exp
- $stderr.puts exp.inspect
- end
-
#Processes layout
def process_layout name = nil
if name.nil? and defined? layout_name
Please sign in to comment.
Something went wrong with that request. Please try again.