Permalink
Browse files

Update for json 1.4.2.

  • Loading branch information...
1 parent 5289e16 commit f38dfd788d42f4976c4abb128d5f33983d3a8435 @paulcarey committed May 4, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/relaxdb/document.rb
  2. +1 −1 lib/relaxdb/extlib.rb
View
@@ -192,7 +192,7 @@ def inspect
alias_method :to_s, :inspect
- def to_json
+ def to_json(*args)
ref_rels = self.class.references_rels.map { |k, v| k.to_s }
@data.delete_if { |k,v| ref_rels.include? k }
View
@@ -16,7 +16,7 @@ class Time
# Ensure that all Times are stored as UTC
# Times in the following format may be passed directly to
# Date.new in a JavaScript runtime
- def to_json(options={})
+ def to_json(*args)
utc
%Q("#{strftime "%Y/%m/%d %H:%M:%S +0000"}")
end

0 comments on commit f38dfd7

Please sign in to comment.