diff options
Diffstat (limited to 'lib/override/json.rb')
-rw-r--r-- | lib/override/json.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/override/json.rb b/lib/override/json.rb new file mode 100644 index 0000000..a7ae328 --- /dev/null +++ b/lib/override/json.rb @@ -0,0 +1,11 @@ +# +# This exists solely to prevent other gems we depend on from +# importing json/ext (e.g. require 'json'). +# +# If json/ext is imported, json/pure cannot work, and we heavily +# rely on the specific behavior of json/pure. +# +# This trick only works if this directory is early in the +# include path. +# +require 'json/pure'
\ No newline at end of file |