Skip to content

Commit af2b38c

Browse files
committed
add require for active_support/json to fix #1656
1 parent d30aa4c commit af2b38c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/active_model_serializers.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
require 'active_support'
33
require 'active_support/core_ext/object/with_options'
44
require 'active_support/core_ext/string/inflections'
5+
require 'active_support/json'
56
module ActiveModelSerializers
67
extend ActiveSupport::Autoload
78
autoload :Model

test/test_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
require 'action_controller'
1515
require 'action_controller/test_case'
1616
require 'action_controller/railtie'
17-
require 'active_support/json'
1817
require 'active_model_serializers'
1918
require 'fileutils'
2019
FileUtils.mkdir_p(File.expand_path('../../tmp/cache', __FILE__))

0 commit comments

Comments
 (0)