Skip to content
Browse files

use fully qualified class name for JSON

  • Loading branch information...
1 parent e401d55 commit 4fd19a191a17415e4b089ed62b62f0dc1539f592 @toothrot committed Dec 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/initializers/httparty/response.rb
View
2 config/initializers/httparty/response.rb
@@ -26,7 +26,7 @@ def to_html(options = {:line_numbers => :table})
when /html/
::CodeRay.scan(body, :html).div(options)
when /json|javascript/
- ::CodeRay.scan(JSON.pretty_generate(JSON.parse(body)), :json).div(options)
+ ::CodeRay.scan(::JSON.pretty_generate(::JSON.parse(body)), :json).div(options)
when /image|jpg|jpeg|gif|png|bmp|binary/
"<img src=\"data:binary/octet;base64,#{Base64.encode64(response.body)}\" />"
else

0 comments on commit 4fd19a1

Please sign in to comment.
Something went wrong with that request. Please try again.