Permalink
Browse files

make Friendly::UUID actually compatible with rufus-json

  • Loading branch information...
1 parent b906683 commit 5ab8df88aeb20f7dc42b1a7300fe7e7c1b915194 @jamesgolick committed Jul 1, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/friendly/uuid.rb
View
@@ -1,5 +1,6 @@
require 'friendly/time'
require 'friendly/attribute'
+require 'rufus-json'
# This class was extracted from the cassandra gem by Evan Weaver
# As such, it is distributed under the terms of the apache license.
@@ -85,7 +86,7 @@ def to_guid
end
def to_json(*args)
- to_guid.to_json(*args)
+ Rufus::Json.encode(to_guid)
end
def seconds

0 comments on commit 5ab8df8

Please sign in to comment.