Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-14 12:27:30 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-14 12:27:30 +0300
commit95037c9c559dae1d4482a2003ca2f0f778678d09 (patch)
treebc3ad1804d0e62d2736bd08a3a988b37f9cc9982 /config
parent16e44ad7fcbbceb0b220dd88dba197b1db797498 (diff)
Revert "monkey patch of Hash"
This reverts commit 6014019ed49295178ebd0c4ce5f6f1d210219420.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/hash_patch.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/config/initializers/hash_patch.rb b/config/initializers/hash_patch.rb
deleted file mode 100644
index 9397d0d1829..00000000000
--- a/config/initializers/hash_patch.rb
+++ /dev/null
@@ -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 \ No newline at end of file