Do not modify standard symbol in JSON behaviour. It seems to be good now
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
class Symbol
|
||||
def to_json(*)
|
||||
to_s
|
||||
end
|
||||
|
||||
def as_json(*)
|
||||
to_s
|
||||
end
|
||||
end
|
||||
# #TODO: please investigate if this can be removed
|
||||
# class Symbol
|
||||
# def to_json(*)
|
||||
# to_s
|
||||
# end
|
||||
#
|
||||
# def as_json(*)
|
||||
# to_s
|
||||
# end
|
||||
# end
|
||||
|
||||
Reference in New Issue
Block a user