Skip to content

Commit

Permalink
Don't inspect strings
Browse files Browse the repository at this point in the history
  • Loading branch information
ismasan committed Nov 24, 2011
1 parent b8fe3d4 commit 856b1d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/em_airbrake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def xml_vars_for(builder, hash)
if value.respond_to?(:to_hash)
builder.var(:key => key.to_s){|b| xml_vars_for(b, value.to_hash) }
else
builder.var(value.inspect, :key => key.to_s)
v = value.is_a?(String) ? value : value.inspect
builder.var(v, :key => key.to_s)
end
end
end
Expand Down

0 comments on commit 856b1d6

Please sign in to comment.