Navigation Menu

Skip to content

Commit

Permalink
Ensure that the Time#to_json signature is compatible with the JSON gem
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Sep 18, 2008
1 parent 64db048 commit c4dc40d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extlib/time.rb
Expand Up @@ -5,7 +5,7 @@ class Time
#
# @example
# Time.now.to_json # => "\"2008-03-28T17:54:20-05:00\""
def to_json
def to_json(*)
self.xmlschema.to_json
end

Expand Down

0 comments on commit c4dc40d

Please sign in to comment.