Permalink
Browse files

Opt in to JSON

  • Loading branch information...
1 parent ab32126 commit 6fee981fa4ea2654f825c58b58327fc15fddf3a6 @jeremy jeremy committed Apr 22, 2009
@@ -1,3 +1,5 @@
+require 'active_support/json'
+
module ActionDispatch
class ParamsParser
ActionController::Base.param_parsers[Mime::XML] = :xml_simple
@@ -1,3 +1,5 @@
+require 'active_support/json'
+
module ActiveRecord #:nodoc:
module Serialization
def self.included(base)
@@ -1,3 +1,5 @@
+require 'active_support/json'
+
module ActiveResource
module Formats
module JsonFormat
@@ -52,6 +52,5 @@ def self.load_all!
require 'active_support/vendor'
require 'active_support/dependencies'
-require 'active_support/json'
I18n.load_path << "#{File.dirname(__FILE__)}/active_support/locale/en.yml"
@@ -1,5 +1,6 @@
# encoding: UTF-8
require 'abstract_unit'
+require 'active_support/json'
class TestJSONDecoding < ActiveSupport::TestCase
TESTS = {

0 comments on commit 6fee981

Please sign in to comment.