Revert "monkey patch of Hash"

This reverts commit 6014019ed4.
This commit is contained in:
Kamil Trzcinski 2015-09-14 11:27:30 +02:00
parent 16e44ad7fc
commit 95037c9c55

View file

@ -1,15 +0,0 @@
# We need this patch because of json format error in the CI API:
# IOError (not opened for reading)
# Details: http://stackoverflow.com/questions/19808921/upgrade-to-rails-4-got-ioerror-not-opened-for-reading
# It happens because of ActiveSupport's monkey patch of json formatters
if defined?(ActiveSupport::JSON)
Hash.class_eval do
def to_json(*args)
super(args)
end
def as_json(*args)
super(args)
end
end
end