Skip to content

Commit

Permalink
Opt in to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Apr 22, 2009
1 parent ab32126 commit 6fee981
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actionpack/lib/action_dispatch/middleware/params_parser.rb
@@ -1,3 +1,5 @@
require 'active_support/json'

module ActionDispatch
class ParamsParser
ActionController::Base.param_parsers[Mime::XML] = :xml_simple
Expand Down
2 changes: 2 additions & 0 deletions activerecord/lib/active_record/serializers/json_serializer.rb
@@ -1,3 +1,5 @@
require 'active_support/json'

module ActiveRecord #:nodoc:
module Serialization
def self.included(base)
Expand Down
2 changes: 2 additions & 0 deletions activeresource/lib/active_resource/formats/json_format.rb
@@ -1,3 +1,5 @@
require 'active_support/json'

module ActiveResource
module Formats
module JsonFormat
Expand Down
1 change: 0 additions & 1 deletion activesupport/lib/active_support.rb
Expand Up @@ -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 change: 1 addition & 0 deletions activesupport/test/json/decoding_test.rb
@@ -1,5 +1,6 @@
# encoding: UTF-8
require 'abstract_unit'
require 'active_support/json'

class TestJSONDecoding < ActiveSupport::TestCase
TESTS = {
Expand Down

0 comments on commit 6fee981

Please sign in to comment.