2007-12-21 08:48:59 +01:00
|
|
|
class Numeric
|
|
|
|
def to_json(options = nil) #:nodoc:
|
|
|
|
to_s
|
|
|
|
end
|
2009-08-04 17:16:03 +02:00
|
|
|
|
|
|
|
def as_json(options = nil) #:nodoc:
|
|
|
|
self
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Float
|
|
|
|
def to_json(options = nil) #:nodoc:
|
|
|
|
to_s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
class Integer
|
|
|
|
def to_json(options = nil) #:nodoc:
|
|
|
|
to_s
|
|
|
|
end
|
2007-12-21 08:48:59 +01:00
|
|
|
end
|