Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use JSON.generate over to_json
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Nov 18, 2013
1 parent 0f73754 commit 49a9b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nack/json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Nack
module JSON
def self.encode(obj)
obj.to_json
::JSON.generate(obj)
end

def self.decode(json)
Expand Down

0 comments on commit 49a9b29

Please sign in to comment.