From 6d443e008a94f842799f30d15aacb754439fe101 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 28 Oct 2014 11:23:55 -0700 Subject: better solution to activesupport dependency problem --- lib/override/to_json.rb | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 lib/override/to_json.rb (limited to 'lib/override/to_json.rb') diff --git a/lib/override/to_json.rb b/lib/override/to_json.rb deleted file mode 100644 index 73fbe5c..0000000 --- a/lib/override/to_json.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -# activesupport/lib/core_ext/object/to_json.rb overrides to_json for -# most core objects like so: -# -# [Object, Array, FalseClass, Float, Hash, Integer, NilClass, String, TrueClass].each do |klass| -# klass.class_eval do -# # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info. -# def to_json(options = nil) -# ActiveSupport::JSON.encode(self, options) -# end -# end -# end -# -# We cannot tolerate this. We need the normal to_json to be called, not -# ActiveSupport's custom version. -# -# This file exists to override the behavior of ActiveSupport. This file will get included -# instead of the normal to_json.rb. -# - -- cgit v1.2.3